packages/net/iodine/files/iodined.init
florian 4539071e0d Add config and init files for iodined
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8784 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-16 09:53:42 +00:00

23 lines
421 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start_service () {
local section="$1"
config_get address "$section" address
config_get password "$section" password
config_get tunnelip "$section" tunnelip
config_get tld "$section" tld
iodined -l $address -P $password $tunnelip $tld
}
start() {
config_load "iodined"
config_foreach start_service iodined
}
stop() {
killall iodined
}