updatedd: be more human-friendly :)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8777 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
215d6ec220
commit
d2946278f5
@ -1,6 +1,6 @@
|
|||||||
config updatedd
|
config updatedd
|
||||||
option service ''
|
option service ''
|
||||||
option user ''
|
option username ''
|
||||||
option passwd ''
|
option password ''
|
||||||
option host ''
|
option host ''
|
||||||
option update '0'
|
option update '0'
|
||||||
|
@ -5,13 +5,13 @@ START=50
|
|||||||
start_service () {
|
start_service () {
|
||||||
local section="$1"
|
local section="$1"
|
||||||
config_get service "$section" service
|
config_get service "$section" service
|
||||||
config_get user "$section" user
|
config_get username "$section" username
|
||||||
config_get passwd "$section" passwd
|
config_get password "$section" password
|
||||||
config_get host "$section" host
|
config_get host "$section" host
|
||||||
config_get update "$section" update
|
config_get update "$section" update
|
||||||
|
|
||||||
[ "$update" = 1 ] && {
|
[ "$update" = 1 ] && {
|
||||||
/usr/bin/updatedd -Y $service -- $user:$passwd $host
|
/usr/bin/updatedd -Y $service -- $username:$password $host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user