diff mbox

[OpenWrt-Devel] base-files: create /var/tmp on boot

Message ID 1443530073-31924-1-git-send-email-fercerpav@gmail.com
State Accepted
Headers show

Commit Message

Paul Fertser Sept. 29, 2015, 12:34 p.m. UTC
FHS mandates presence of /var/tmp on compliant systems.

The lack of /var/tmp was discovered when using MIT Kerberos libraries
which default to that location for storing credentials cache.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
---
 package/base-files/files/etc/init.d/boot | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index a53be74..b4e6171 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -26,6 +26,7 @@  boot() {
 	mkdir -p /var/log
 	mkdir -p /var/lock
 	mkdir -p /var/state
+	mkdir -p /var/tmp
 	mkdir -p /tmp/.uci
 	chmod 0700 /tmp/.uci
 	mkdir -p /tmp/.jail