summaryrefslogtreecommitdiffstats
path: root/root/etc/init.d/S10boot
blob: 6a8cc6c56dce5657fd4043ab8d850eb9a0c659f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
sysctl -p

insmod diag
echo "0x01" > /proc/sys/diag

# 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