diff options
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 |