remove unused robocfg stuff
[openwrt.git] / package / base-files / default / etc / init.d / S10boot
1 #!/bin/sh
2 . /etc/nvram.sh
3
4 [ "$(uname -r|grep -c 2.4)" = "1" ] && {
5 echo "S" > /proc/jffs2_bbc
6 }
7
8 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
9
10 HOSTNAME=$(nvram get wan_hostname)
11 HOSTNAME=${HOSTNAME%%.*}
12 echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
13
14 # automagically run firstboot
15 [ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
16 { mount|grep "on / type jffs2" 1>&-; } || firstboot
17 }
18
19 mkdir -p /var/run
20 mkdir -p /var/log
21 touch /var/log/wtmp
22 touch /var/log/lastlog
23 [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
24
25 sed 's/^[^#]/insmod &/' /etc/modules /etc/modules.d/* 2>&-|ash
26
27 ifconfig lo 127.0.0.1 up
28 ifconfig eth0 promisc
29
This page took 0.040829 seconds and 5 git commands to generate.