Add init files and iptables rule for ptunnel to work (#2863)
[openwrt/svn-archive/archive.git] / net / ptunnel / files / ptunnel.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007 OpenWrt.org
3 START=70
4 STOP=70
5
6 start() {
7 iptables -I OUTPUT 1 -p icmp -j ACCEPT
8 ptunnel -v 1 -c br-lan
9 }
10
11 stop() {
12 killall ptunnel
13 }
14