aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
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
commit40e3aaf4301d3a138bb3a2eba5f2bf1c56f57cdb (patch)
treeb485df8ca41653e1eba7b20fbb9cf470e49c7e02 /package/base-files/files/etc
parent269c00418ccc64dc7224054d826047ac8b45a278 (diff)
downloadupstream-40e3aaf4301d3a138bb3a2eba5f2bf1c56f57cdb.tar.gz
upstream-40e3aaf4301d3a138bb3a2eba5f2bf1c56f57cdb.tar.bz2
upstream-40e3aaf4301d3a138bb3a2eba5f2bf1c56f57cdb.zip
set $HOME to /tmp on bootup
SVN-Revision: 7068
Diffstat (limited to 'package/base-files/files/etc')
-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