From c463bbfb6a381329e1479be7cb8d9081ca966ceb Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 4 Jan 2008 02:38:44 +0000 Subject: [PATCH] Add basic init script for portsentry #2962 SVN-Revision: 10103 --- net/portsentry/Makefile | 3 ++- net/portsentry/files/portsentry.init | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 net/portsentry/files/portsentry.init diff --git a/net/portsentry/Makefile b/net/portsentry/Makefile index d02a9ff480..bbd6830e1b 100644 --- a/net/portsentry/Makefile +++ b/net/portsentry/Makefile @@ -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 diff --git a/net/portsentry/files/portsentry.init b/net/portsentry/files/portsentry.init new file mode 100644 index 0000000000..dbaa362ddd --- /dev/null +++ b/net/portsentry/files/portsentry.init @@ -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 +} + -- 2.30.2