diff options
author | Michael Stapelberg <michael+x200@stapelberg.de> | 2009-04-13 23:44:56 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+x200@stapelberg.de> | 2009-04-13 23:44:56 +0200 |
commit | b71d390d59f5b044b393807aedc35d8e16e2e3ce (patch) | |
tree | e976617ac8af8c35992ad1a4bc81d51e626e6aef /wmiistatus.init | |
parent | df2fb018fba376bcc1477f662c3799024aaa1663 (diff) |
Fix initscript to be dash-compatible (Thanks Mirko)
Diffstat (limited to 'wmiistatus.init')
-rwxr-xr-x | wmiistatus.init | 2 |
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 |