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 mkdir
-p /tmp
/resolv.conf.d
35 touch /tmp
/resolv.conf.d
/resolv.conf.auto
36 ln -sf /tmp
/resolv.conf.d
/resolv.conf.auto
/tmp
/resolv.conf
37 grep -q debugfs
/proc
/filesystems
&& /bin
/mount
-o noatime
-t debugfs debugfs
/sys
/kernel
/debug
38 grep -q bpf
/proc
/filesystems
&& /bin
/mount
-o nosuid
,nodev
,noexec
,noatime
,mode
=0700 -t bpf bpffs
/sys
/fs
/bpf
39 [ "$FAILSAFE" = "true" ] && touch /tmp
/.failsafe
43 [ ! -f /etc
/config
/wireless
] && {
44 # compat for bcm47xx and mvebu
51 # temporary hack until configd exists