diff --git a/files/etc/init.d/local b/files/etc/init.d/local index c7b7100e..739496eb 100755 --- a/files/etc/init.d/local +++ b/files/etc/init.d/local @@ -95,9 +95,7 @@ boot() { shift done - # set local alerts if available - local alertslocalpath=$(uci -q get aredn.@alerts[0].localpath) - if [ -z "$alertslocalpath" ]; then + if [ -z "$(uci -q get aredn.@alerts[0])" ]; then uci -q add aredn alerts uci -q commit aredn fi