[Packages] net/gpsd:
[openwrt/svn-archive/archive.git] / net / iodine / files / iodined.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 start_service () {
6 local section="$1"
7 config_get address "$section" address
8 config_get password "$section" password
9 config_get tunnelip "$section" tunnelip
10 config_get tld "$section" tld
11
12 iodined -l $address -P $password $tunnelip $tld
13 }
14
15 start() {
16 config_load "iodined"
17 config_foreach start_service iodined
18 }
19
20 stop() {
21 killall iodined
22 }