aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-03-26 10:58:11 +0000
committerJohn Crispin <john@openwrt.org>2015-03-26 10:58:11 +0000
commit5b23cfab731174723050706e6ec9fa6bc6a4ca9d (patch)
treeaca31ab996fa70a06c481a23bbaa01c5239cdacf /package/base-files/files/etc/init.d
parentc67144cc058eafa4ad3ffe9015bc0682efb7d86f (diff)
downloadupstream-5b23cfab731174723050706e6ec9fa6bc6a4ca9d.tar.gz
upstream-5b23cfab731174723050706e6ec9fa6bc6a4ca9d.tar.bz2
upstream-5b23cfab731174723050706e6ec9fa6bc6a4ca9d.zip
base-files: create jail folder on boot
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45008
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index f10db1344f..6950130f99 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -28,6 +28,8 @@ boot() {
mkdir -p /var/state
mkdir -p /tmp/.uci
chmod 0700 /tmp/.uci
+ mkdir -p /tmp/.jail
+ chmod 0700 /tmp/.jail
touch /var/log/wtmp
touch /var/log/lastlog
touch /tmp/resolv.conf.auto