Add basic init script for portsentry #2962
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10103 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2b9438853a
commit
c80804a237
@ -35,8 +35,9 @@ MAKE_FLAGS += \
|
||||
linux \
|
||||
|
||||
define Package/portsentry/install
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/
|
||||
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
||||
endef
|
||||
|
13
net/portsentry/files/portsentry.init
Normal file
13
net/portsentry/files/portsentry.init
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
START=99
|
||||
|
||||
start() {
|
||||
portsentry -atcp
|
||||
portsentry -audp
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall -9 portsentry
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user