adjust netconf for new su behaviour
reported and debugged by Ryan Lie, tracker item 594.
This commit is contained in:
parent
3f775404d9
commit
36db008cb5
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ if [ -n "$prefix" ] ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$USER" != root ] ; then
|
if [ `whoami` != root ] ; then
|
||||||
test "$v" = 1 && echo "Please run netconf as root."
|
test "$v" = 1 && echo "Please run netconf as root."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue