aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-26 10:58:11 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-26 10:58:11 +0000
commit36d91414120eab2273cc5f0a9274b25d7a93da11 (patch)
tree9d672dc9531d27b9276009259216f7070d65ab7a /package/base-files/files/etc
parent2c93d1ab3dcc443739cbc68e7f3c9ac71da74ac6 (diff)
downloadupstream-36d91414120eab2273cc5f0a9274b25d7a93da11.tar.gz
upstream-36d91414120eab2273cc5f0a9274b25d7a93da11.tar.bz2
upstream-36d91414120eab2273cc5f0a9274b25d7a93da11.zip
base-files: create jail folder on boot
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45008 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-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