1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
5 [ -f /proc
/mounts
] ||
/sbin
/mount_root
6 [ -f /proc
/jffs2_bbc
] && echo "S" > /proc
/jffs2_bbc
7 vconfig set_name_type DEV_PLUS_VID_NO_PAD
9 HOSTNAME
=${wan_hostname%%.*}
10 echo ${HOSTNAME:=OpenWrt}>/proc
/sys
/kernel
/hostname
16 touch /var
/log
/lastlog
17 [ "$FAILSAFE" = "true" ] && touch /tmp
/.failsafe
19 # manually trigger hotplug before loading modules
20 for iface
in $
(awk -F: '/:/ {print $1}' /proc
/net
/dev
); do
21 /usr
/bin
/env
-i ACTION
=add INTERFACE
="$iface" /sbin
/hotplug net
24 load_modules
/etc
/modules
/etc
/modules.d
/*