X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fbt-hid;h=3b358cfa118b11deef2b8edcdaa4ea692b20987e;hb=bbb81ba76bc96fe59e6a35091a90853fec23b22b;hp=47e3a86141534a639898331d0c4082c720a52681;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts-core.git diff --git a/usr_sbin/bt-hid b/usr_sbin/bt-hid index 47e3a86..3b358cf 100755 --- a/usr_sbin/bt-hid +++ b/usr_sbin/bt-hid @@ -4,12 +4,11 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Aug 08 19:58:41 CEST 2006 [mika] ################################################################################ . /etc/grml/lsb-functions -if [ $UID != 0 ] ; then +if [ "$(id -ru)" != "0" ] ; then eerror "Need root privileges. Please run $0 as user root." ; eend 1 exit 1 fi