associate_timeout_wlan0=30 config_eth0="dhcp" config_wlan0="dhcp" config_usb0="dhcp" dhcpcd_eth0="-t 28" dhcp_eth0="release nonis" dhcp_wlan0="release nonis" dhcp_usb0="release nonis" bridge_vmbr0="eth0" config_vmbr0="dhcp" fallback_vmbr0="192.168.10.116 netmask 255.255.255.0" dhcp_vmbr0="release nonis" preup() { /usr/sbin/rfkill unblock wifi # start eth0 only if cable is connected if [ "${IFACE}" = "eth0" ]; then /bin/ip link set ${IFACE} up sleep 3.5 if ethtool "${IFACE}" | grep -q 'Link detected: no'; then ewarn "No link on ${IFACE}, aborting configuration" return 1 fi fi # Remember to return 0 on success return 0 } postup() { if [ "${IFACE}" == "eth0" -o "${IFACE}" == "wlan0" -o \ "${IFACE}" == "usb0" ]; then result=1 count=0 while [ ! $result -eq 0 -a $count -lt 5 ]; do if [ "`/bin/ip -4 -o addr show ${IFACE}`" != "" ]; then /usr/local/bin/firewall-bemit.py result=0 else sleep 2 fi; let count++ done; fi; }