move to new init.d structure
[openwrt/svn-archive/archive.git] / root / etc / init.d / S10boot
1 #!/bin/sh
2 sysctl -p
3
4 insmod diag
5 echo "0x01" > /proc/sys/diag
6
7 # networking stub
8 insmod et
9 insmod wl
10
11 ifconfig lo 127.0.0.1 up
12 ifconfig eth0 promisc
13
14 HOSTNAME=$(nvram get wan_hostname)
15 DOMAINNAME=${HOSTNAME##*.}
16 HOSTNAME=${HOSTNAME%%.*}
17
18 echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname
19 echo ${DOMAINNAME:=lan} > /proc/sys/kernel/domainname
20
21 vconfig set_name_type VLAN_PLUS_VID_NO_PAD