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:
olli 2007-09-14 14:09:40 +00:00
parent 215d6ec220
commit d2946278f5
2 changed files with 8 additions and 8 deletions

View File

@ -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'

View File

@ -4,14 +4,14 @@ 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
} }
} }