updatedd: be more human-friendly :)
authorolli <olli@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 Sep 2007 14:09:40 +0000 (14:09 +0000)
committerolli <olli@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 Sep 2007 14:09:40 +0000 (14:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8777 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/updatedd/files/updatedd.config
net/updatedd/files/updatedd.init

index 72b1c9e..f2e9e91 100644 (file)
@@ -1,6 +1,6 @@
 config updatedd
         option service     ''
-        option user        ''
-        option passwd      ''
+        option username    ''
+        option password    ''
         option host        ''
         option update      '0'
index 6bd4bde..7b6a9b1 100644 (file)
@@ -4,14 +4,14 @@ START=50
 
 start_service () {
        local section="$1"
-       config_get service "$section" service
-       config_get user    "$section" user
-       config_get passwd  "$section" passwd
-       config_get host    "$section" host
-       config_get update  "$section" update
+       config_get service  "$section" service
+       config_get username "$section" username
+       config_get password "$section" password
+       config_get host     "$section" host
+       config_get update   "$section" update
 
        [ "$update" = 1 ] && {
-               /usr/bin/updatedd -Y $service -- $user:$passwd $host
+               /usr/bin/updatedd -Y $service -- $username:$password $host
        }
 }