2010-12-18 23:56:42 +00:00
|
|
|
#!/bin/sh
|
2011-01-05 15:33:39 +00:00
|
|
|
|
|
|
|
[ -n "$(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 set system.@watchcat[0].pinghosts=8.8.8.8
|
|
|
|
uci set system.@watchcat[0].forcedelay=30
|
|
|
|
uci commit
|
|
|
|
}
|