X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fndiswrapper.sh;h=f0531af8611e2a39ea70c146ac471a5ec1eca922;hb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;hp=7112b295185b328a9011ae4966874ffcf2de883a;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts.git diff --git a/usr_sbin/ndiswrapper.sh b/usr_sbin/ndiswrapper.sh index 7112b29..f0531af 100755 --- a/usr_sbin/ndiswrapper.sh +++ b/usr_sbin/ndiswrapper.sh @@ -4,14 +4,13 @@ # Authors: (c) Martin Oehler 2004, (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fri Apr 21 22:22:12 CEST 2006 [mika] ################################################################################ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin" export PATH # Get root -if [ $UID != 0 ] ; then +if [ $(id -u) != 0 ] ; then echo Error: become root before starting $0 >& 2 exit 100 fi