parent
ef1a466a13
commit
104c55606f
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
### For 'Bridged' Internet sharing method
|
### For 'Bridged' Internet sharing method
|
||||||
* bridge-utils
|
* bridge-utils
|
||||||
* dhclient
|
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
# dependencies for 'bridge' Internet sharing method
|
# dependencies for 'bridge' Internet sharing method
|
||||||
# bridge-utils
|
# bridge-utils
|
||||||
# dhclient
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $(basename $0) [options] <wifi-interface> [<interface-with-internet>] [<access-point-name> [<passphrase>]]"
|
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
|
# create and initialize bridged interface
|
||||||
brctl addbr ${BRIDGE_IFACE} || die
|
brctl addbr ${BRIDGE_IFACE} || die
|
||||||
brctl addif ${BRIDGE_IFACE} ${INTERNET_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
|
fi
|
||||||
else
|
else
|
||||||
echo "No Internet sharing"
|
echo "No Internet sharing"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user