PKG_NAME:=comgt
PKG_VERSION:=0.32
PKG_NAME:=comgt
PKG_VERSION:=0.32
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/comgt
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/comgt
config_get iface "$INTERFACE" ifname
case "$ACTION" in
ifup)
config_get iface "$INTERFACE" ifname
case "$ACTION" in
ifup)
- iptables -I LAN_ACCEPT 1 -i "$iface" -j RETURN
- iptables -A FORWARD -o "$iface" -j ACCEPT
- iptables -t nat -A POSTROUTING -o "$iface" -j MASQUERADE
set_3g_led 1 1 0
;;
ifdown)
set_3g_led 1 1 0
;;
ifdown)
- iptables -D LAN_ACCEPT -i "$iface" -j RETURN
- iptables -D FORWARD -o "$iface" -j ACCEPT
- iptables -t nat -D POSTROUTING -o "$iface" -j MASQUERADE