X-Git-Url: http://git.grml.org/?p=grml-scripts-core.git;a=blobdiff_plain;f=usr_sbin%2Fbt-hid;h=3b358cfa118b11deef2b8edcdaa4ea692b20987e;hp=47e3a86141534a639898331d0c4082c720a52681;hb=9fef74081f53d30174118872324fa62d4a8145b5;hpb=03fcacf4cdf6ed30709d2639436870f906b8f1c9 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