From: Rene Wagner Date: Thu, 12 Aug 2004 20:59:42 +0000 (+0000) Subject: base-files: write history to /mnt/ramfs/home/$USER/ if present. otherwise disable it. X-Git-Tag: Release-2010-05/1~17689 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1227c8f93da5cee6bc0e54ed0031393632b73089;p=openembedded.git base-files: write history to /mnt/ramfs/home/$USER/ if present. otherwise disable it. BKrev: 411bda3eRjw5u1rQzrytMMuC6JDn0w --- diff --git a/base-files/base-files/etc/profile b/base-files/base-files/etc/profile index 08b8355cc1..08c2afdf8b 100644 --- a/base-files/base-files/etc/profile +++ b/base-files/base-files/etc/profile @@ -24,3 +24,9 @@ fi export PATH PS1 OPIEDIR QPEDIR QTDIR umask 022 + +if [ -d /mnt/ramfs/home/$USER ]; then + export HISTFILE="/mnt/ramfs/home/$USER/.ash_history" +else + export HISTFILE="" +fi