X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-bridge;h=93e6686f69f685050cd81a306c88ce216aacb9e2;hb=6491538dd1b832fcae56d058b2a0685f2e643460;hp=c74c8cc3e42e6d3179721327752c9d2d03bc2bf7;hpb=2ceeb1f13e6dd0f6efffef9568ee6449135911e6;p=grml-network.git diff --git a/sbin/grml-bridge b/sbin/grml-bridge index c74c8cc..93e6686 100755 --- a/sbin/grml-bridge +++ b/sbin/grml-bridge @@ -4,17 +4,13 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mit Mär 26 23:02:52 CET 2008 [mika] ################################################################################ -# exit on any error -set -e - CONFIG_FILE=/etc/grml/routersetup . /etc/grml/lsb-functions . /etc/grml/script-functions -check4root +check4root || exit 1 if ! [ -r "$CONFIG_FILE" ] ; then eerror "$CONFIG_FILE could not be read." @@ -51,7 +47,15 @@ case "$1" in ;; esac - einfo "Enabling promiscous mode on: " + einfo "Bringing network device up: " + eindent + for i in $BRIDGE_DEVICES ; do + einfo "$i" + ifconfig "$i" 0.0.0.0 up ; eend $? + done + eoutdent + + einfo "Enabling promiscuous mode on: " eindent for i in $BRIDGE_DEVICES ; do einfo "$i" @@ -80,7 +84,7 @@ case "$1" in ip a a $BRIDGE_IP dev $BRIDGE_NAME ;; NONE) - einfo "Leaving $BRIDGE_NAME uconfigured" + einfo "Leaving $BRIDGE_NAME unconfigured" ;; esac eoutdent @@ -105,7 +109,7 @@ case "$1" in done eoutdent - einfo "Disabling promiscous mode on: " + einfo "Disabling promiscuous mode on: " eindent for i in $BRIDGE_DEVICES ; do einfo "$i "