summaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton/etc/init.d/S10boot
diff options
context:
space:
mode:
Diffstat (limited to 'target/default/target_skeleton/etc/init.d/S10boot')
-rwxr-xr-xtarget/default/target_skeleton/etc/init.d/S10boot5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/default/target_skeleton/etc/init.d/S10boot b/target/default/target_skeleton/etc/init.d/S10boot
index 81379bed4..bd94bbd45 100755
--- a/target/default/target_skeleton/etc/init.d/S10boot
+++ b/target/default/target_skeleton/etc/init.d/S10boot
@@ -4,7 +4,12 @@ syslogd -C 16
sysctl -p
echo "S" > /proc/jffs2_bbc
+rm -rf /var
+ln -sf /tmp /var
mkdir -p /var/run
+mkdir -p /var/log
+touch /var/log/wtmp
+touch /var/log/lastlog
[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
# if default wifi mac, set two higher than the lan mac