adjust netconf for new su behaviour

reported and debugged by Ryan Lie, tracker item 594.
This commit is contained in:
Ben Gras 2012-03-28 17:30:56 +02:00
parent 3f775404d9
commit 36db008cb5

View 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