From: Ben Gras Date: Wed, 28 Mar 2012 15:30:56 +0000 (+0200) Subject: adjust netconf for new su behaviour X-Git-Tag: v3.2.1~634 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/addsub.png?a=commitdiff_plain;h=36db008cb5eaf7a8918d70c99982818acee6a645;p=minix.git adjust netconf for new su behaviour reported and debugged by Ryan Lie, tracker item 594. --- diff --git a/commands/netconf/netconf.sh b/commands/netconf/netconf.sh index 848be483d..c435379af 100644 --- a/commands/netconf/netconf.sh +++ b/commands/netconf/netconf.sh @@ -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