diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-27 12:58:32 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-27 12:58:32 +0000 |
commit | d3551589c911a40239d5be2b7ddc414f89dd548f (patch) | |
tree | 501c9d7f6a3c8a44376280563dbc1603cccb7349 /move/tree/halt_reboot | |
parent | 9470b4477a6745cd40256a13a66e82a96eea9cdd (diff) | |
download | drakx-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-x | move/tree/halt_reboot | 9 |
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 |