From b71d390d59f5b044b393807aedc35d8e16e2e3ce Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 13 Apr 2009 23:44:56 +0200 Subject: [PATCH] Fix initscript to be dash-compatible (Thanks Mirko) --- wmiistatus.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5