X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-router;h=b959f12f4f73f3180c95102fafe4bdb5b14ee09a;hb=bc56d430ed4f7eb77355cd3db871d7a7078d051b;hp=d762adcd4714fea5180be566ff2237698b536d7b;hpb=8043f22ebf6c2f2912b2147f69175b13a094b629;p=grml-network.git diff --git a/sbin/grml-router b/sbin/grml-router index d762adc..b959f12 100755 --- a/sbin/grml-router +++ b/sbin/grml-router @@ -4,21 +4,14 @@ # 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. -# Latest change: Sam Okt 07 23:18:38 CEST 2006 [mika] ################################################################################ -# exit on any error -set -e - CONFIG_FILE=/etc/grml/routersetup . /etc/grml/lsb-functions . /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."