Skip to content
Snippets Groups Projects
Commit 091db1eb authored by Bob Mottram's avatar Bob Mottram
Browse files

wlan counting

parent e635453d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment