2004-05-08 06:41:36 +08:00
|
|
|
#!/bin/sh
|
|
|
|
sysctl -p
|
2004-05-10 11:00:19 +08:00
|
|
|
echo "S" > /proc/jffs2_bbc
|
2004-05-08 06:41:36 +08:00
|
|
|
|
|
|
|
# networking stub
|
|
|
|
insmod et
|
|
|
|
insmod wl
|
|
|
|
|
|
|
|
ifconfig lo 127.0.0.1 up
|
|
|
|
ifconfig eth0 promisc
|
|
|
|
|
|
|
|
HOSTNAME=$(nvram get wan_hostname)
|
|
|
|
DOMAINNAME=${HOSTNAME##*.}
|
|
|
|
HOSTNAME=${HOSTNAME%%.*}
|
|
|
|
|
|
|
|
echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname
|
|
|
|
echo ${DOMAINNAME:=lan} > /proc/sys/kernel/domainname
|
|
|
|
|
|
|
|
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
|