diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index fb2563a1..3e748934 100755 --- a/src/freedombone-mesh-batman +++ b/src/freedombone-mesh-batman @@ -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