You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
486 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. START=50
  4. start_instance () {
  5. local section="$1"
  6. config_get address "$section" 'address'
  7. config_get password "$section" 'password'
  8. config_get tunnelip "$section" 'tunnelip'
  9. config_get tld "$section" 'tld'
  10. service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld"
  11. }
  12. start() {
  13. config_load 'iodined'
  14. config_foreach start_instance 'iodined'
  15. }
  16. stop() {
  17. service_stop /usr/sbin/iodined
  18. }