diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-16 10:18:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-16 10:18:01 +0000 |
commit | 02b89aa9c7edd73edac0ba401d30cea93143d538 (patch) | |
tree | f4deaf71694fe367f9d696525c69ff0d5b8debc8 /target/default/target_skeleton/etc/init.d | |
parent | 7df1d6160c5ae9151cb0a9bd25527d4a0e97fca9 (diff) | |
download | upstream-02b89aa9c7edd73edac0ba401d30cea93143d538.tar.gz upstream-02b89aa9c7edd73edac0ba401d30cea93143d538.tar.bz2 upstream-02b89aa9c7edd73edac0ba401d30cea93143d538.zip |
add some changes from whiterussian to head
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton/etc/init.d')
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S10boot | 14 | ||||
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S45firewall | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/target/default/target_skeleton/etc/init.d/S10boot b/target/default/target_skeleton/etc/init.d/S10boot index f45eafb1e7..22096d5fbb 100755 --- a/target/default/target_skeleton/etc/init.d/S10boot +++ b/target/default/target_skeleton/etc/init.d/S10boot @@ -14,16 +14,14 @@ touch /var/log/lastlog # set up the vlan*ports variables for the asus wl-500g deluxe # if they don't already exist -[ "$(nvram get boardtype)" = "bcm95365r" ] && \ -[ "$(nvram get boardnum)" = "45" ] && { - [ -z "$(nvram get vlan0ports)" ] && \ - [ -z "$(nvram get vlan1ports)" ] && { - nvram set vlan0ports="1 2 3 4 5*" - nvram set vlan1ports="0 5" - } +[ "$(nvram get boardtype)" = "bcm95365r" \ +-a "$(nvram get boardnum)" = "45" \ +-a -z "$(nvram get vlan0ports)$(nvram get vlan1ports)" ] && { + nvram set vlan0ports="1 2 3 4 5*" + nvram set vlan1ports="0 5" } -cat /etc/modules /etc/modules.d/*|sed 's/^[^#]/insmod &/' 2>&-|ash +sed 's/^[^#]/insmod &/' /etc/modules /etc/modules.d/* 2>&-|ash ifconfig lo 127.0.0.1 up ifconfig eth0 promisc diff --git a/target/default/target_skeleton/etc/init.d/S45firewall b/target/default/target_skeleton/etc/init.d/S45firewall index dc429f2725..8350ccbfef 100755 --- a/target/default/target_skeleton/etc/init.d/S45firewall +++ b/target/default/target_skeleton/etc/init.d/S45firewall @@ -26,7 +26,7 @@ iptables -t nat -N postrouting_rule iptables -P INPUT DROP iptables -A INPUT -m state --state INVALID -j DROP iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT - iptables -A INPUT -p tcp --syn --tcp-option \! 2 -j DROP + iptables -A INPUT -p tcp --tcp-flags SYN SYN --tcp-option \! 2 -j DROP # # insert accept rule or to jump to new accept-check table here |