summaryrefslogtreecommitdiffstats
path: root/openwrt/package/portmap/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-22 23:07:18 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-22 23:07:18 +0000
commit39c19d79435170496682b96f7ef51ada186cc372 (patch)
tree8c2292d26fe74b22f4809f08ef45e2d2337814c8 /openwrt/package/portmap/files
parent011032796fe43ba603529580d4de23311884c700 (diff)
add an initscript
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1536 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/portmap/files')
-rw-r--r--openwrt/package/portmap/files/portmap.init16
1 files changed, 16 insertions, 0 deletions
diff --git a/openwrt/package/portmap/files/portmap.init b/openwrt/package/portmap/files/portmap.init
new file mode 100644
index 000000000..e1ed89a60
--- /dev/null
+++ b/openwrt/package/portmap/files/portmap.init
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+BIN=portmap
+DEFAULT=/etc/default/$BIN
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ $BIN $OPTIONS
+ ;;
+ *)
+ echo "usage: $0 (start)"
+ exit 1
+esac
+
+exit $?