packages/net/ndyndns/files/ndyndns.init
nbd 187a2c552c Port of the dyndns.com update client ndyndns.
Signed off by: Conrad Hirano <placebo3@fastmail.us>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@10615 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-18 19:07:42 +00:00

19 lines
309 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org
START=80
DEFAULT=/etc/default/ndyndns
start() {
[ -f $DEFAULT ] && . $DEFAULT
. /etc/functions.sh
include /lib/network
scan_interfaces
/usr/sbin/ndyndns -c $CHROOT -f $CONFIG -i $(config_get wan ifname) $OPTIONS
}
stop() {
killall ndyndns
}