projects
/
grml-network.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump to Standard Version 3.8.3; add grml-sniff to long descr
[grml-network.git]
/
sbin
/
grml-bridge
diff --git
a/sbin/grml-bridge
b/sbin/grml-bridge
index
c74c8cc
..
9ee19ab
100755
(executable)
--- a/
sbin/grml-bridge
+++ b/
sbin/grml-bridge
@@
-4,12
+4,8
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# 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
CONFIG_FILE=/etc/grml/routersetup
. /etc/grml/lsb-functions
. /etc/grml/script-functions
@@
-51,7
+47,15
@@
case "$1" in
;;
esac
;;
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"
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)
ip a a $BRIDGE_IP dev $BRIDGE_NAME
;;
NONE)
- einfo "Leaving $BRIDGE_NAME uconfigured"
+ einfo "Leaving $BRIDGE_NAME u
n
configured"
;;
esac
eoutdent
;;
esac
eoutdent
@@
-105,7
+109,7
@@
case "$1" in
done
eoutdent
done
eoutdent
- einfo "Disabling promiscous mode on: "
+ einfo "Disabling promisc
u
ous mode on: "
eindent
for i in $BRIDGE_DEVICES ; do
einfo "$i "
eindent
for i in $BRIDGE_DEVICES ; do
einfo "$i "