Selaa lähdekoodia

linknx: add init file

Signed-off-by: Othmar Truniger <github@truniger.ch>
Othmar Truniger 10 vuotta sitten
vanhempi
commit
c7e53198ae
1 muutettua tiedostoa jossa 22 lisäystä ja 0 poistoa
  1. 22
    0
      net/linknx/files/linknx.init

+ 22
- 0
net/linknx/files/linknx.init Näytä tiedosto

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