blob: 88fa0f5888db2fb84eb1e3cf7f77a0ad3160bc2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
. /lib/functions.sh
upgrade_to_retry_max_count() {
local service=$1
local retry_count retry_max_count
config_get retry_max_count $service retry_max_count
config_get retry_count $service retry_count
if [ -z "$retry_max_count" ] && [ -n "$retry_count" ]; then
uci_set ddns $service retry_max_count $retry_count
uci_commit ddns
fi
}
config_load ddns
config_foreach upgrade_to_retry_max_count service
exit 0
|