load kernel modules in kmod- packages from postinst scripts at install.
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / etc / init.d / S10boot
1 #!/bin/sh
2 . /etc/functions.sh
3
4 [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
5 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
6
7 HOSTNAME=${wan_hostname%%.*}
8 echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
9
10 mkdir -p /var/run
11 mkdir -p /var/log
12 touch /var/log/wtmp
13 touch /var/log/lastlog
14 [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
15
16 for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do
17 /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
18 done
19
20 load_modules /etc/modules /etc/modules.d/*
21
22 ifconfig lo 127.0.0.1 up
23 ifconfig eth0 promisc
24