1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007-2012 OpenWrt.org
9 config_get interface "$section" interface
10 network_get_device ifname "$interface" || {
11 echo "${initscript}: Error: Interface '$interface' not found" 1>&2
15 SERVICE_PID_FILE="/var/run/ptunnel.$ifname.pid"
16 service_start /usr/sbin/ptunnel -c "$ifname" -daemon $SERVICE_PID_FILE
20 . /lib/functions/network.sh
23 config_foreach start_instance 'ptunnel'
24 iptables -I OUTPUT 1 -p icmp -j ACCEPT 2>/dev/null
28 service_stop /usr/sbin/ptunnel
29 iptables -D OUTPUT -p icmp -j ACCEPT 2>/dev/null