wlan counting

This commit is contained in:
Bob Mottram 2016-10-06 20:45:54 +01:00
parent e635453d98
commit 091db1eb1e
1 changed files with 3 additions and 2 deletions

View File

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