Skip to content

Commit

Permalink
fixed a bug in the monit configuration where the wlan0 check even
Browse files Browse the repository at this point in the history
triggered a reinit of the wlan0 interface if the eth0 interface was used
and the wpa_supplication.conf file exists. This fixes #624.
  • Loading branch information
jens-maus committed May 7, 2019
1 parent bf9ee7c commit 1d9eeba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildroot-external/overlay/base-raspmatic/etc/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ check network wlan0 interface wlan0
if failed link then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'wlan0 interface link down' WatchDog-Alarm"
depends on wlan0Enabled
depends on wlan0CheckEnabled

check program wlan0Enabled with path "/usr/bin/test -e /etc/config/wpa_supplicant.conf"
check program wlan0CheckEnabled with path /bin/sh -c "[[ -e /etc/config/wpa_supplicant.conf ]] && /bin/grep 0 /sys/class/net/eth0/carrier 2>/dev/null"
group system
if status != 0 for 1 cycles then unmonitor

Expand Down

0 comments on commit 1d9eeba

Please sign in to comment.