summaryrefslogtreecommitdiffstats
path: root/move/tree/halt_reboot
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-27 12:58:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-27 12:58:32 +0000
commitd3551589c911a40239d5be2b7ddc414f89dd548f (patch)
tree501c9d7f6a3c8a44376280563dbc1603cccb7349 /move/tree/halt_reboot
parent9470b4477a6745cd40256a13a66e82a96eea9cdd (diff)
downloaddrakx-backup-do-not-use-d3551589c911a40239d5be2b7ddc414f89dd548f.tar
drakx-backup-do-not-use-d3551589c911a40239d5be2b7ddc414f89dd548f.tar.gz
drakx-backup-do-not-use-d3551589c911a40239d5be2b7ddc414f89dd548f.tar.bz2
drakx-backup-do-not-use-d3551589c911a40239d5be2b7ddc414f89dd548f.tar.xz
drakx-backup-do-not-use-d3551589c911a40239d5be2b7ddc414f89dd548f.zip
at last a good reboot/halt from kde
Diffstat (limited to 'move/tree/halt_reboot')
-rwxr-xr-xmove/tree/halt_reboot9
1 files changed, 2 insertions, 7 deletions
diff --git a/move/tree/halt_reboot b/move/tree/halt_reboot
index d31032fe6..b4b1d4ede 100755
--- a/move/tree/halt_reboot
+++ b/move/tree/halt_reboot
@@ -1,10 +1,5 @@
#!/bin/sh
+echo "reboot" > /var/run/rebootctl
sudo killall -USR1 startkde_move
-
-if [ $UID == 0 ]; then
- user=`getent passwd 501 | perl -ne 'print $1 if /([^:]+):/'`
- su $user -c 'dcop kdesktop default logout'
-else
- dcop kdesktop default logout
-fi \ No newline at end of file
+sudo killall X