From: uli@elephant.spamt.net Date: Sat, 28 Oct 2006 00:20:34 +0000 (+0200) Subject: Better error handling and removed typo X-Git-Tag: 0.1-2~2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=8043f22ebf6c2f2912b2147f69175b13a094b629;p=grml-network.git Better error handling and removed typo --- diff --git a/sbin/grml-router b/sbin/grml-router index c7c0e16..d762adc 100755 --- a/sbin/grml-router +++ b/sbin/grml-router @@ -28,13 +28,19 @@ fi . $CONFIG_FILE if [ -z "$OUTDEV" ] ; then - eerror "Outgouing device is not set in $CONFIG_FILE" - exit 1 + eewarn "Outgoing device is not set in $CONFIG_FILE" + eewarn "Setting Outgoing device to auto" + OUTDEV=auto fi case "$OUTDEV" in auto|default) OUTDEV=$(defaultGWDev) + if [ -z "$OUTDEV" ] ; then + eerror "The outgoing device could not be determined." + eerror "Please adjust OUTDEV in $CONFIG_FILE" + exit 1 + fi ;; esac