aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index d67f551b9c..6da3df2b4e 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -181,8 +181,13 @@ define Package/base-files/install
mkdir -p $(1)/www
mkdir -p $(1)/root
$(LN) /proc/mounts $(1)/etc/mtab
+ifeq ($(CONFIG_TARGET_ROOTFS_PERSIST_VAR),n)
rm -f $(1)/var
$(LN) tmp $(1)/var
+else
+ mkdir -p $(1)/var
+ $(LN) /tmp/run $(1)/var/run
+endif
mkdir -p $(1)/etc
$(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/