X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-router;h=b959f12f4f73f3180c95102fafe4bdb5b14ee09a;hb=9ccc6a295df786159f86a35d7a465f7902646312;hp=219ae19373248adac0887b86ca08ee438e8d0447;hpb=5ccffd6ee849bb7c004e464f3972bcce22beac7c;p=grml-network.git diff --git a/sbin/grml-router b/sbin/grml-router index 219ae19..b959f12 100755 --- a/sbin/grml-router +++ b/sbin/grml-router @@ -11,10 +11,7 @@ CONFIG_FILE=/etc/grml/routersetup . /etc/grml/net-functions . /etc/grml/script-functions -if [ $UID != 0 ]; then - eerror "Error: become root before starting $0" - exit 100 -fi +check4root || exit 1 if ! [ -r $CONFIG_FILE ] ; then eerror "$CONFIG_FILE could not be read."