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.

22 lines
441 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=98
  4. STOP=10
  5. NAME=linknx
  6. PROG=/usr/bin/$NAME
  7. . /lib/functions.sh
  8. start() {
  9. local conf options
  10. config_load "$NAME"
  11. config_get conf args conf '/etc/linknx.xml'
  12. config_get options args options ''
  13. test -f $conf || cp -p /etc/linknx.xml.dist $conf
  14. service_start $PROG --config=$conf $options
  15. }
  16. stop() {
  17. service_stop $PROG
  18. }