From aa8c15ded63ddb7f05fca6cc8e6765c5707ebedc Mon Sep 17 00:00:00 2001
From: Sukru Senli <sukru.senli@iopsys.eu>
Date: Mon, 3 Jun 2019 17:32:52 +0200
Subject: [PATCH] lq-wave: remove imonitor rule for restarting wifi

---
 .../uci-defaults/999-imonitor-restart-hostapd | 20 -------------------
 1 file changed, 20 deletions(-)
 delete mode 100644 lq-wave-300_5_x/files/etc/uci-defaults/999-imonitor-restart-hostapd

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 6d7a017..0000000
--- 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
-
-- 
GitLab