sync with r1585 from xwrt. kamikaze integration finished by thepeople. thanks

git-svn-id: svn://svn.openwrt.org/openwrt/packages@5692 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov
2006-12-05 06:24:30 +00:00
parent 83922c7260
commit b95525d225
5 changed files with 25 additions and 14 deletions

View File

@ -7,7 +7,7 @@ diff -urN miniupnpd.orig/linux/iptables_init.sh miniupnpd/linux/iptables_init.sh
-#change this parameters :
-EXTIF=eth0
+EXTIF=$(nvram get wan_device)
+EXTIF=$(uci get network.wan.ifname)
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
echo "External IP = $EXTIP"
@ -20,7 +20,7 @@ diff -urN miniupnpd.orig/linux/iptables_removeall.sh miniupnpd/linux/iptables_re
-#change this parameters :
-EXTIF=eth0
+EXTIF=$(nvram get wan_device)
+EXTIF=$(uci get network.wan.ifname)
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
#removing the MINIUPNPD chain for nat