1
0

linknx.init 477 B

1234567891011121314151617181920212223
  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. }