large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
[openwrt.git] / package / base-files / default / etc / init.d / S10boot
1 #!/bin/sh
2
3 [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
4 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
5
6 HOSTNAME=${wan_hostname%%.*}
7 echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
8
9 mkdir -p /var/run
10 mkdir -p /var/log
11 touch /var/log/wtmp
12 touch /var/log/lastlog
13 [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
14
15 for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do
16 /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
17 done
18
19 sed 's/^[^#]/insmod &/' /etc/modules /etc/modules.d/* 2>&-|ash
20
21 ifconfig lo 127.0.0.1 up
22 ifconfig eth0 promisc
23
This page took 0.05317 seconds and 5 git commands to generate.