diff options
Diffstat (limited to 'target')
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S10boot | 14 | ||||
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S45firewall | 2 | ||||
-rw-r--r-- | target/default/target_skeleton/etc/nvram.overrides | 24 | ||||
-rw-r--r-- | target/linux/image/squashfs.mk | 2 |
4 files changed, 20 insertions, 22 deletions
diff --git a/target/default/target_skeleton/etc/init.d/S10boot b/target/default/target_skeleton/etc/init.d/S10boot index f45eafb1e..22096d5fb 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 dc429f272..8350ccbfe 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 diff --git a/target/default/target_skeleton/etc/nvram.overrides b/target/default/target_skeleton/etc/nvram.overrides index 001a61329..d457af48e 100644 --- a/target/default/target_skeleton/etc/nvram.overrides +++ b/target/default/target_skeleton/etc/nvram.overrides @@ -20,8 +20,8 @@ remap () { } # hacks for wrt54g 1.x hardware -[ "$(nvram get boardnum)" = "42" ] && \ -[ "$(nvram get boardtype)" = "bcm94710dev" ] && { +[ "$(nvram get boardnum)" = "42" \ +-a "$(nvram get boardtype)" = "bcm94710dev" ] && { debug "### wrt54g 1.x hack ###" NVRAM_vlan1hwname="et0" NVRAM_vlan2hwname="et0" @@ -31,8 +31,8 @@ remap () { } # hacks for asus wl-500g deluxe -[ "$(nvram get boardtype)" = "bcm95365r" ] && \ -[ "$(nvram get boardnum)" = "45" ] && { +[ "$(nvram get boardtype)" = "bcm95365r" \ +-a "$(nvram get boardnum)" = "45" ] && { debug "### wl-500g deluxe hacks ###" NVRAM_vlan0hwname="et0" NVRAM_vlan1hwname="et0" @@ -42,32 +42,32 @@ remap () { } # hacks for asus wl-300g -[ "$(nvram get productid)" = "WL300g" ] && { +[ "$(nvram get productid)" = "WL300g" ] && { debug "### wl-300g hacks ###" NVRAM_lan_ifnames="eth0 eth2" NVRAM_wan_ifname="none" } # hacks for wap54g hardware -[ "$(nvram get boardnum)" = "2" ] || \ -[ "$(nvram get boardnum)" = "1024" ] && { +[ "$(nvram get boardnum)" = "2" \ +-o "$(nvram get boardnum)" = "1024" ] && { debug "### wap54g hack ###" NVRAM_wan_ifname="none" FAILSAFE_ifnames="eth0 eth1" } # hacks for buffalo wla2-g54l -[ "$(nvram get boardnum)" = "00" ] && \ -[ "$(nvram get product_name)" = "Product_name" ] || \ -[ "$(nvram get product_name)" = "WLA2-G54L" ] && { +[ "$(nvram get boardnum)" = "00" \ +-a "$(nvram get product_name)" = "Product_name" \ +-o "$(nvram get product_name)" = "WLA2-G54L" ] && { debug "### wla2-g54l hacks ###" NVRAM_wan_ifname="none" NVRAM_lan_ifnames="vlan0" } # hack for asus wl-500g hardware -[ "$(nvram get boardnum)" = "asusX" ] && \ -[ "$(nvram get boardtype)" = "bcm94710dev" ] && { +[ "$(nvram get boardnum)" = "asusX" \ +-a "$(nvram get boardtype)" = "bcm94710dev" ] && { FAILSAFE_ifnames="eth0 eth2" } diff --git a/target/linux/image/squashfs.mk b/target/linux/image/squashfs.mk index 917a69ab8..70a85b99e 100644 --- a/target/linux/image/squashfs.mk +++ b/target/linux/image/squashfs.mk @@ -10,7 +10,7 @@ squashfs-clean: $(KDIR)/root.squashfs: @mkdir -p $(KDIR)/root/jffs - $(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -noappend -root-owned -le + $(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le squashfs-install: $(KDIR)/root.squashfs $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs" |