[packages] watchcat, default configuration file correction
authorNuno Goncalves <nunojpg@gmail.com>
Tue, 8 May 2012 16:44:50 +0000 (16:44 +0000)
committerNuno Goncalves <nunojpg@gmail.com>
Tue, 8 May 2012 16:44:50 +0000 (16:44 +0000)
SVN-Revision: 31652

utils/watchcat/files/uci_defaults_watchcat

index 1c457d7a9d42772ae32cf3aff826a9e03bcce83e..49def81eb7661bf2b94aeed5405f9f28b437f1ec 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
 #!/bin/sh
 
-[ -n "$(uci -q show system.@watchcat[0])" ] || {
+uci -q show system.@watchcat[0] || {
        uci add system watchcat
        uci set system.@watchcat[0].period=6h
        uci set system.@watchcat[0].mode=ping
        uci add system watchcat
        uci set system.@watchcat[0].period=6h
        uci set system.@watchcat[0].mode=ping