adjust netconf for new su behaviour
reported and debugged by Ryan Lie, tracker item 594.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user