diff options
author | Mike Baker <mbm@openwrt.org> | 2006-02-02 10:07:28 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-02-02 10:07:28 +0000 |
commit | efb789106090c1daedbf5e2d34a6db51a84eb792 (patch) | |
tree | 0fd0d97e2a0db830ab17757b5c02bc168975997b /openwrt/package/base-files/default | |
parent | 3f956d1d50b27a7f0de79e3f473c883550da586a (diff) | |
download | mtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.zip mtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.tar.gz mtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.tar.bz2 |
fixes files from [3112]
SVN-Revision: 3114
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/S45firewall | 8 | ||||
-rwxr-xr-x | openwrt/package/base-files/default/sbin/mount_root | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall index 0110cfc..2942f31 100755 --- a/openwrt/package/base-files/default/etc/init.d/S45firewall +++ b/openwrt/package/base-files/default/etc/init.d/S45firewall @@ -81,11 +81,9 @@ iptables -t nat -N postrouting_rule iptables -A FORWARD -j forwarding_rule # allow - # if there is bridge splitting this workaround works too - for iface in $LAN; do - iptables -A FORWARD -i $iface -o $iface -j ACCEPT - [ -z "$WAN" ] || iptables -A FORWARD -i $iface -o $WAN -j ACCEPT - done + iptables -A FORWARD -i br0 -o br0 -j ACCEPT + [ -z "$WAN" ] || iptables -A FORWARD -i $iface -o $WAN -j ACCEPT + # reject (what to do with anything not allowed earlier) # uses the default -P DROP diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root index 693c694..427ff04 100755 --- a/openwrt/package/base-files/default/sbin/mount_root +++ b/openwrt/package/base-files/default/sbin/mount_root @@ -30,7 +30,7 @@ if [ "$1" != "failsafe" ]; then pivot_root /jffs /jffs/rom mount none /proc -t proc mount none /dev -t devfs - umount /rom/proc rom/dev >&- + umount /rom/proc /rom/dev >&- fi fi fi |