Signed-off-by: michu-at-neophob-com
SVN-Revision: 9818
define Package/ptunnel/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/ptunnel.init $(1)/etc/init.d/ptunnel
endef
$(eval $(call BuildPackage,ptunnel))
--- /dev/null
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2007 OpenWrt.org
+START=70
+STOP=70
+
+start() {
+ iptables -I OUTPUT 1 -p icmp -j ACCEPT
+ ptunnel -v 1 -c br-lan
+}
+
+stop() {
+ killall ptunnel
+}
+
\ No newline at end of file