mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
net/iodine: import from old packages
No further changes.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
|
||||
start_instance () {
|
||||
local section="$1"
|
||||
config_get address "$section" 'address'
|
||||
config_get password "$section" 'password'
|
||||
config_get tunnelip "$section" 'tunnelip'
|
||||
config_get tld "$section" 'tld'
|
||||
|
||||
service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld"
|
||||
}
|
||||
|
||||
start() {
|
||||
config_load 'iodined'
|
||||
config_foreach start_instance 'iodined'
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/sbin/iodined
|
||||
}
|
||||
Reference in New Issue
Block a user