Bump to Standard Version 3.8.3; add grml-sniff to long descr
[grml-network.git] / sbin / grml-router
index c7c0e16..219ae19 100755 (executable)
@@ -4,12 +4,8 @@
 # Authors:       grml-team (grml.org), Ulrich Dangel <schula@grml.org>, Michael Prokop <mika@grml.org>
 # 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
@@ -28,13 +24,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