1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
8 .
/lib
/functions
/system.sh
10 cd /etc
/uci-defaults ||
return 0
12 [ -z "$files" ] && return 0
14 for file in $files; do
15 ( .
"./$(basename $file)" ) && rm -f "$file"
21 [ -f /proc
/mounts
] ||
/sbin
/mount_root
22 [ -f /proc
/jffs2_bbc
] && echo "S" > /proc
/jffs2_bbc
23 [ -f /proc
/net
/vlan
/config
] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
33 touch /var
/log
/lastlog
34 touch /tmp
/resolv.conf.auto
35 ln -sf /tmp
/resolv.conf.auto
/tmp
/resolv.conf
36 grep -q debugfs
/proc
/filesystems
&& /bin
/mount
-o noatime
-t debugfs debugfs
/sys
/kernel
/debug
37 [ "$FAILSAFE" = "true" ] && touch /tmp
/.failsafe
41 [ ! -f /etc
/config
/wireless
] && {
42 # compat for brcm47xx and mvebu
49 # temporary hack until configd exists