summaryrefslogtreecommitdiffstats
path: root/openwrt/target/default/target_skeleton/etc/init.d/S10boot
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 10:18:01 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 10:18:01 +0000
commit0ba0ace5d1e8673c7519fdd76bb719333ca4ef5b (patch)
treebae0c99c6691980591374f61763afe34f203c1f8 /openwrt/target/default/target_skeleton/etc/init.d/S10boot
parentf1ec3cf1276ff0bae1b58e6db55d48ade93c4a47 (diff)
add some changes from whiterussian to head
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default/target_skeleton/etc/init.d/S10boot')
-rwxr-xr-xopenwrt/target/default/target_skeleton/etc/init.d/S10boot14
1 files changed, 6 insertions, 8 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S10boot b/openwrt/target/default/target_skeleton/etc/init.d/S10boot
index f45eafb1e..22096d5fb 100755
--- a/openwrt/target/default/target_skeleton/etc/init.d/S10boot
+++ b/openwrt/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