upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / base-files / files / etc / init.d / boot
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=10
5 start() {
6 [ -f /proc/mounts ] || /sbin/mount_root
7 [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
8 vconfig set_name_type DEV_PLUS_VID_NO_PAD
9
10 HOSTNAME=${wan_hostname%%.*}
11 echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
12
13 mkdir -p /var/run
14 mkdir -p /var/log
15 mkdir -p /var/lock
16 touch /var/log/wtmp
17 touch /var/log/lastlog
18 ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
19 [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
20
21 # manually trigger hotplug before loading modules
22 for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do
23 /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
24 done
25
26 load_modules /etc/modules.d/*
27 }
This page took 0.053596 seconds and 5 git commands to generate.