wlan counting
This commit is contained in:
parent
e635453d98
commit
091db1eb1e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue