add missing copyright
[openwrt.git] / package / base-files / default / etc / init.d / S10boot
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 . /etc/functions.sh
5
6 [ -f /proc/mounts ] || /sbin/mount_root
7 [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
8 vconfig set_name_type VLAN_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 touch /var/log/wtmp
16 touch /var/log/lastlog
17 [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
18
19 for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do
20 /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
21 done
22
23 load_modules /etc/modules /etc/modules.d/*
24
25 ifconfig lo 127.0.0.1 up
26 ifconfig eth0 promisc
27
This page took 0.052681 seconds and 5 git commands to generate.