aboutsummaryrefslogtreecommitdiffstats
path: root/package/portmap
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-07-22 23:07:18 +0000
committerNicolas Thill <nico@openwrt.org>2005-07-22 23:07:18 +0000
commit88a441fd860a7a853ac7226747dd3865f0ef6ff5 (patch)
tree08f7279e1ddd4113c6226004bea1f8ebd509d835 /package/portmap
parentf2b624a03225e46479a72082027b8c3586b6b6d7 (diff)
downloadupstream-88a441fd860a7a853ac7226747dd3865f0ef6ff5.tar.gz
upstream-88a441fd860a7a853ac7226747dd3865f0ef6ff5.tar.bz2
upstream-88a441fd860a7a853ac7226747dd3865f0ef6ff5.zip
add an initscript
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1536 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/portmap')
-rw-r--r--package/portmap/files/portmap.init16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/portmap/files/portmap.init b/package/portmap/files/portmap.init
new file mode 100644
index 0000000000..e1ed89a60f
--- /dev/null
+++ b/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 $?