create_ap

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

commit d03951bf2940ccc054078f3d1b6a45014a45eed2
parent 67588aa7a7bbd915fe5576580b70f006f6040ef4
Author: oblique <psyberbits@gmail.com>
Date:   Mon Dec  2 23:53:38 +0200

Set broadcast ip address

Diffstat:
create_ap | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/create_ap b/create_ap @@ -361,7 +361,7 @@ ip link set down dev ${VWIFI_IFACE} || die ip addr flush ${VWIFI_IFACE} || die if [[ "$SHARE_METHOD" != "bridge" ]]; then ip link set up dev ${VWIFI_IFACE} || die - ip addr add ${GATEWAY}/24 dev ${VWIFI_IFACE} || die + ip addr add ${GATEWAY}/24 broadcast ${GATEWAY%.*}.255 dev ${VWIFI_IFACE} || die fi # enable Internet sharing