From d03951bf2940ccc054078f3d1b6a45014a45eed2 Mon Sep 17 00:00:00 2001 From: oblique Date: Mon, 2 Dec 2013 23:53:38 +0200 Subject: [PATCH] Set broadcast ip address --- create_ap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ap b/create_ap index 5c615c5..e8a658e 100755 --- 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