4 [ "$(uname -r|grep -c 2.4)" = "1" ] && {
5 echo "S" > /proc
/jffs2_bbc
8 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
10 HOSTNAME
=$
(nvram get wan_hostname
)
11 HOSTNAME
=${HOSTNAME%%.*}
12 echo ${HOSTNAME:=OpenWrt}>/proc
/sys
/kernel
/hostname
14 # automagically run firstboot
15 [ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
16 { mount|
grep "on / type jffs2" 1>&-; } || firstboot
22 touch /var
/log
/lastlog
23 [ "$FAILSAFE" = "true" ] && touch /tmp
/.failsafe
25 sed 's/^[^#]/insmod &/' /etc
/modules
/etc
/modules.d
/* 2>&-|ash
27 ifconfig lo
127.0.0.1 up
30 [ "$(uname -r|grep -c 2.6)" = "1" ] && [ -x /sbin
/robocfg
] && { # FIXME: replace when the new switch driver is integrated...
31 robocfg switch disable vlans
enable reset vlan
0 ports
"0 1 2 3 5t" vlan
1 ports
"4 5t" port
4 state enabled stp none switch
enable