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/halt_reboot | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 move/tree/halt_reboot (limited to 'move/tree/halt_reboot') diff --git a/move/tree/halt_reboot b/move/tree/halt_reboot new file mode 100755 index 000000000..d31032fe6 --- /dev/null +++ b/move/tree/halt_reboot @@ -0,0 +1,10 @@ +#!/bin/sh + +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 -- cgit v1.2.1