packages/net/updatedd/files/updatedd.init
olli 7d6343ea21 updatedd:
* Update 2.5 > 2.6
 * Use our own source tarball with the zoneedit support patch (florian says it's better this way)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8474 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-23 16:40:31 +00:00

26 lines
485 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
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
[ "$update" = 1 ] && {
/usr/bin/updatedd -Y $service -- $user:$passwd $host
}
}
start() {
config_load "updatedd"
config_foreach start_service updatedd
}
stop() {
killall updatedd
}