-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=iodine
PKG_VERSION:=0.6.0-rc1
PKG_NAME:=iodine
PKG_VERSION:=0.6.0-rc1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://code.kryo.se/iodine/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://code.kryo.se/iodine/
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
- config_get address "$section" address
- config_get password "$section" password
- config_get tunnelip "$section" tunnelip
- config_get tld "$section" tld
+ 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
+ service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld"
- config_load "iodined"
- config_foreach start_service iodined
+ config_load 'iodined'
+ config_foreach start_instance 'iodined'
+ service_stop /usr/sbin/iodined