From 023504a1a6d43414f366562485d14dcbdffbedc8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 26 Nov 2003 16:46:26 +0000 Subject: allow to reboot the machine --- move/tree/startkde_move | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'move/tree/startkde_move') 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 & -- cgit v1.2.1