X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fndiswrapper.sh;h=f0531af8611e2a39ea70c146ac471a5ec1eca922;hb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;hp=38e03d1021ead1f32485d4eaa6ccb8c1b2d09173;hpb=9fef74081f53d30174118872324fa62d4a8145b5;p=grml-scripts.git diff --git a/usr_sbin/ndiswrapper.sh b/usr_sbin/ndiswrapper.sh index 38e03d1..f0531af 100755 --- a/usr_sbin/ndiswrapper.sh +++ b/usr_sbin/ndiswrapper.sh @@ -10,7 +10,7 @@ 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