openwrtv4/package/base-files/files/etc/preinit
Imre Kaloz 40e3aaf430 set $HOME to /tmp on bootup
SVN-Revision: 7068
2007-04-30 09:59:40 +00:00

7 lines
199 B
Bash
Executable file

#!/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