From: Michael Stapelberg Date: Mon, 13 Apr 2009 21:44:56 +0000 (+0200) Subject: Fix initscript to be dash-compatible (Thanks Mirko) X-Git-Tag: 1.0~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b71d390d59f5b044b393807aedc35d8e16e2e3ce;p=i3%2Fi3status Fix initscript to be dash-compatible (Thanks Mirko) --- 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