We don't need to set an IP to the bridged interface

Fix #18
This commit is contained in:
oblique 2014-04-05 22:02:51 +03:00
parent ef1a466a13
commit 104c55606f
2 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,6 @@
### For 'Bridged' Internet sharing method
* bridge-utils
* dhclient
## Installation

View File

@ -14,7 +14,6 @@
# dependencies for 'bridge' Internet sharing method
# bridge-utils
# dhclient
usage() {
echo "Usage: $(basename $0) [options] <wifi-interface> [<interface-with-internet>] [<access-point-name> [<passphrase>]]"
@ -446,7 +445,7 @@ if [[ "$SHARE_METHOD" != "none" ]]; then
# create and initialize bridged interface
brctl addbr ${BRIDGE_IFACE} || die
brctl addif ${BRIDGE_IFACE} ${INTERNET_IFACE} || die
dhclient -pf $CONFDIR/dhclient.pid ${BRIDGE_IFACE} || die
ip link set dev ${BRIDGE_IFACE} up || die
fi
else
echo "No Internet sharing"