create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 104c55606f9bee4fffe3aae67603dde8818c595e
parent ef1a466a13227bc2a2efe331e6d5f690ead679ed
Author: oblique <psyberbits@gmail.com>
Date:   Sat,  5 Apr 2014 22:02:51 +0300

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

Fix #18

Diffstat:
MREADME.md | 1-
Mcreate_ap | 3+--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -24,7 +24,6 @@ ### For 'Bridged' Internet sharing method * bridge-utils -* dhclient ## Installation diff --git a/create_ap b/create_ap @@ -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"