|
@@ -36,7 +36,7 @@ function count_wlan {
|
36
|
36
|
# counts the number of wlan devices
|
37
|
37
|
ctr=0
|
38
|
38
|
|
39
|
|
- for i in $(seq 0 -1 10); do
|
|
39
|
+ for i in $(seq 0 1 10); do
|
40
|
40
|
if grep -q "wlan${i}" /proc/net/dev; then
|
41
|
41
|
ctr=$((ctr + 1))
|
42
|
42
|
fi
|
|
@@ -299,9 +299,10 @@ function start {
|
299
|
299
|
echo 'auth_algs=1' >> /etc/hostapd/hostapd.conf
|
300
|
300
|
echo 'macaddr_acl=0' >> /etc/hostapd/hostapd.conf
|
301
|
301
|
|
302
|
|
- ifconfig $IFACE_SECONDARY up promisc
|
303
|
302
|
ifconfig $BRIDGE_HOTSPOT up
|
304
|
303
|
avahi-autoipd --force-bind --daemonize --wait $BRIDGE_HOTSPOT
|
|
304
|
+ ifconfig $IFACE_SECONDARY up promisc
|
|
305
|
+ ifconfig $IFACE_SECONDARY auto-dhcp
|
305
|
306
|
fi
|
306
|
307
|
fi
|
307
|
308
|
fi
|