X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-router;h=ec3716854dc754164b15fb3a16fcc2e97f86a58a;hb=64865aa6d6a398993331f3561a70dfffb45a6bee;hp=219ae19373248adac0887b86ca08ee438e8d0447;hpb=5ccffd6ee849bb7c004e464f3972bcce22beac7c;p=grml-network.git diff --git a/sbin/grml-router b/sbin/grml-router index 219ae19..ec37168 100755 --- a/sbin/grml-router +++ b/sbin/grml-router @@ -1,7 +1,7 @@ #!/bin/sh # Filename: grml-router # Purpose: set up your box as NAT-router -# Authors: grml-team (grml.org), Ulrich Dangel , Michael Prokop +# Authors: grml-team (grml.org), Ulrich Dangel , Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. ################################################################################ @@ -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."