aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/preinit
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2007-04-30 09:59:40 +0000
committerImre Kaloz <kaloz@openwrt.org>2007-04-30 09:59:40 +0000
commit0679feaadca15979288b259034a97f31e07d0aeb (patch)
treeada095f880192444740fa9c2c5d522119d9f6dd6 /package/base-files/files/etc/preinit
parent1ffb5db3782b68314f634f39138659ec26de1e7f (diff)
downloadupstream-0679feaadca15979288b259034a97f31e07d0aeb.tar.gz
upstream-0679feaadca15979288b259034a97f31e07d0aeb.tar.bz2
upstream-0679feaadca15979288b259034a97f31e07d0aeb.zip
set $HOME to /tmp on bootup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7068 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/preinit')
-rwxr-xr-xpackage/base-files/files/etc/preinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index c60a0f850f..588db8ede9 100755
--- a/package/base-files/files/etc/preinit
+++ b/package/base-files/files/etc/preinit
@@ -1,6 +1,7 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+export HOME=/tmp
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
mount_root ${FAILSAFE:+failsafe}
exec /sbin/init