diff --git a/lq-wave-300_5_x/files/etc/uci-defaults/999-imonitor-restart-hostapd b/lq-wave-300_5_x/files/etc/uci-defaults/999-imonitor-restart-hostapd deleted file mode 100644 index 6d7a017ccaea682e7fe14b3731462fe9bddbb803..0000000000000000000000000000000000000000 --- a/lq-wave-300_5_x/files/etc/uci-defaults/999-imonitor-restart-hostapd +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh - -add_imonitor_hostapd_rule() { - uci -q get imonitor.hostapd || { - uci -q set imonitor.hostapd="monitor" - uci -q set imonitor.hostapd.app="wifimon" - uci -q set imonitor.hostapd.test="[ \$((\$(uci show wireless | grep wireless.wlan.*htmode | wc -l)-\$(uci show wireless | grep wireless.wlan.*disabled=.*1 | wc -l))) -ne \"\$(pidof hostapd | wc -w)\" -a -z \"\$(uci show wireless | grep wireless.@wifi-iface.*disabled=.*1)\" ] && echo crashed" - uci -q set imonitor.hostapd.stream="stdout" - uci -q set imonitor.hostapd.string_match="crashed" - uci -q set imonitor.hostapd.execute="logger -t \"imonitor\" \"Restarting WiFi\" && wifi &" - uci -q set imonitor.hostapd.interval="2" - uci -q set imonitor.hostapd.nr_tests="2" - uci commit imonitor - } -} - -add_imonitor_hostapd_rule -