summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+x200@stapelberg.de>2009-04-13 23:44:56 +0200
committerMichael Stapelberg <michael+x200@stapelberg.de>2009-04-13 23:44:56 +0200
commitb71d390d59f5b044b393807aedc35d8e16e2e3ce (patch)
treee976617ac8af8c35992ad1a4bc81d51e626e6aef
parentdf2fb018fba376bcc1477f662c3799024aaa1663 (diff)
Fix initscript to be dash-compatible (Thanks Mirko)
-rwxr-xr-xwmiistatus.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/wmiistatus.init b/wmiistatus.init
index 576340f..fa30339 100755
--- a/wmiistatus.init
+++ b/wmiistatus.init
@@ -11,7 +11,7 @@
### END INIT INFO
# For the pidfile, you must be root. wmiistatus itself runs as user just fine
-[ $UID -eq 0 ] || { echo "You need to be root"; exit 1; }
+[ $(id -ru) -eq 0 ] || { echo "You need to be root"; exit 1; }
. /lib/lsb/init-functions