diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 16:46:26 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-26 16:46:26 +0000 |
commit | 023504a1a6d43414f366562485d14dcbdffbedc8 (patch) | |
tree | b2b766daa41f94683e2d81c2b9cad576c7f804ae /move/tree/startkde_move | |
parent | 0088de274228b3a7d55b64481a6dbdb54b8e4279 (diff) | |
download | drakx-023504a1a6d43414f366562485d14dcbdffbedc8.tar drakx-023504a1a6d43414f366562485d14dcbdffbedc8.tar.gz drakx-023504a1a6d43414f366562485d14dcbdffbedc8.tar.bz2 drakx-023504a1a6d43414f366562485d14dcbdffbedc8.tar.xz drakx-023504a1a6d43414f366562485d14dcbdffbedc8.zip |
allow to reboot the machine
Diffstat (limited to 'move/tree/startkde_move')
-rwxr-xr-x | move/tree/startkde_move | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/move/tree/startkde_move b/move/tree/startkde_move index 9169add40..402803b5e 100755 --- a/move/tree/startkde_move +++ b/move/tree/startkde_move @@ -1,5 +1,13 @@ #!/bin/sh +#- exit cleanly on SIGUSR1, so that our init can see a clean shutdown and automatically reboot +reboot () { + touch /tmp/reboot + sudo killall X + exit 0 +} +trap 'reboot' SIGUSR1 + while true; do wait4x || exit 1 xwait -permanent & |