]> Zhao Yanbai Git Server - minix.git/commitdiff
adjust netconf for new su behaviour
authorBen Gras <ben@minix3.org>
Wed, 28 Mar 2012 15:30:56 +0000 (17:30 +0200)
committerBen Gras <ben@minix3.org>
Wed, 28 Mar 2012 15:30:56 +0000 (17:30 +0200)
reported and debugged by Ryan Lie, tracker item 594.

commands/netconf/netconf.sh

index 848be483d86135d489216de16eb97e339303cdda..c435379afb909a1280eb2aa085a21d0d535ba4bf 100644 (file)
@@ -338,7 +338,7 @@ if [ -n "$prefix" ] ; then
     fi
 fi
 
-if [ "$USER" != root ] ; then
+if [ `whoami` != root ] ; then
     test "$v" = 1 && echo "Please run netconf as root."
     exit 1
 fi