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
477 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. mkdir -p /tmp/$NAME/persist
  15. service_start $PROG --config=$conf $options
  16. }
  17. stop() {
  18. service_stop $PROG
  19. }