X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2fb70a3ef218196bfd02e08af8c69034b211b9b5..e45924e5656f877d37c6c60a96f8fca8faa65804:/openwrt/target/default/target_skeleton/etc/init.d/S10boot diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S10boot b/openwrt/target/default/target_skeleton/etc/init.d/S10boot index 81379bed4..bd94bbd45 100755 --- a/openwrt/target/default/target_skeleton/etc/init.d/S10boot +++ b/openwrt/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