Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit d6781c71 authored by Robert Nelson's avatar Robert Nelson
Browse files

bb.org: lxterminal doesnt add ~/bin via .profile so add it via .bashrc


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 2ddcf591
Branches
Tags
No related merge requests found
...@@ -157,6 +157,17 @@ setup_desktop () { ...@@ -157,6 +157,17 @@ setup_desktop () {
echo "" >> /etc/issue.net echo "" >> /etc/issue.net
echo "Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian" >> /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 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 () { cleanup_npm_cache () {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment