From d6781c7153a091c80b74ff5b627ad5b5a93ca920 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Fri, 14 Mar 2014 11:04:18 -0500 Subject: [PATCH] bb.org: lxterminal doesnt add ~/bin via .profile so add it via .bashrc Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- target/chroot/beagleboard.org.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target/chroot/beagleboard.org.sh b/target/chroot/beagleboard.org.sh index 4c64a30df..3b40252f2 100755 --- a/target/chroot/beagleboard.org.sh +++ b/target/chroot/beagleboard.org.sh @@ -157,6 +157,17 @@ setup_desktop () { echo "" >> /etc/issue.net echo "Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian" >> /etc/issue.net sed -i -e 's:#Banner:Banner:g' /etc/ssh/sshd_config + + #lxterminal doesnt reference .profile, so add ~/bin path via .bashrc + if [ -f /usr/bin/lxterminal ] ; then + wfile="/home/${rfs_username}/.bashrc" + echo '' >> ${wfile} + echo "# set PATH so it includes user's private bin if it exists" >> ${wfile} + echo 'if [ -d "$HOME/bin" ] ; then' >> ${wfile} + echo ' PATH="$HOME/bin:$PATH"' >> ${wfile} + echo 'fi' >> ${wfile} + chown -R ${rfs_username}:${rfs_username} ${wfile} + fi } cleanup_npm_cache () { -- GitLab