1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
10 config_get hostname
"$cfg" hostname
11 echo "${hostname:-OpenWrt}" > /proc
/sys
/kernel
/hostname
15 [ -f /proc
/mounts
] ||
/sbin
/mount_root
16 [ -f /proc
/jffs2_bbc
] && echo "S" > /proc
/jffs2_bbc
17 vconfig set_name_type DEV_PLUS_VID_NO_PAD
20 config_foreach system_config system
26 touch /var
/log
/lastlog
27 ln -s /tmp
/resolv.conf.auto
/tmp
/resolv.conf
28 [ "$FAILSAFE" = "true" ] && touch /tmp
/.failsafe
30 # manually trigger hotplug before loading modules
31 for iface
in $
(awk -F: '/:/ {print $1}' /proc
/net
/dev
); do
32 /usr
/bin
/env
-i ACTION
=add INTERFACE
="$iface" /sbin
/hotplug-call net
35 /sbin
/hotplug2
--persistent --max-children 1 &
36 echo /sbin
/hotplug-call
> /proc
/sys
/kernel
/hotplug
38 load_modules
/etc
/modules.d
/*