Skip to content
Snippets Groups Projects
Commit 59490719 authored by fuzzle's avatar fuzzle
Browse files

reduce logging if nothing worthy to report

parent c4365730
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,14 @@ default="freiburg.freifunk.net"
offi=$offline$name
if [ $check -eq 0 ] ; then
if [ "$(uci get wireless.client_radio0.ssid)" == "$offi" ] ; then echo "$0 - still on $offi"|logger ; exit 0 ; fi
if [ "$(uci get wireless.client_radio0.ssid)" == "$offi" ] ; then echo "$0 - still on $offi" ; exit 0 ; fi
echo "$0 change ssid to $offi" | logger
uci set wireless.client_radio0.ssid="$offi"
sed -i s/^ssid=$default/ssid=$offi/ /var/run/hostapd-phy0.conf
killall -HUP hostapd
fi
if [ $check -gt 0 ] ; then
if [ "$(uci get wireless.client_radio0.ssid)" == "$default" ] ; then echo "$0 - still on $default"|logger ; exit 0 ; fi
if [ "$(uci get wireless.client_radio0.ssid)" == "$default" ] ; then echo "$0 - still on $default" ; exit 0 ; fi
echo "$0 change ssid to $default"| logger
uci set wireless.client_radio0.ssid=freiburg.freifunk.net
sed -i s/^ssid=$offi/ssid=$default/ /var/run/hostapd-phy0.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment