summaryrefslogtreecommitdiff
path: root/package/srelay/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/srelay/files')
-rw-r--r--package/srelay/files/srelay.conffiles1
-rw-r--r--package/srelay/files/srelay.init4
-rw-r--r--package/srelay/files/srelay.postinst4
3 files changed, 8 insertions, 1 deletions
diff --git a/package/srelay/files/srelay.conffiles b/package/srelay/files/srelay.conffiles
new file mode 100644
index 000000000..d821cfd26
--- /dev/null
+++ b/package/srelay/files/srelay.conffiles
@@ -0,0 +1 @@
+/etc/srelay.conf
diff --git a/package/srelay/files/srelay.init b/package/srelay/files/srelay.init
index e12024cf3..5cae3c161 100644
--- a/package/srelay/files/srelay.init
+++ b/package/srelay/files/srelay.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 60
+#PKG srelay
+#INIT 60
+
. /etc/rc.conf
case $1 in
diff --git a/package/srelay/files/srelay.postinst b/package/srelay/files/srelay.postinst
new file mode 100644
index 000000000..a3322a763
--- /dev/null
+++ b/package/srelay/files/srelay.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf srelay srelay NO
+add_rcconf srelay_flags srelay_flags "-c /etc/srelay.conf -r -s"