Add ~/.profile support to busybox bash

bash shim now loads ~/.profile on startup which sources ~/.bashrc
if it exists
This commit is contained in:
Simon Hartcher 2015-05-09 17:14:00 +10:00
parent 32d4b4ae4b
commit 3c4cd15318

View File

@ -11,7 +11,7 @@
[ "busybox.exe", "awk", "awk" ], [ "busybox.exe", "awk", "awk" ],
[ "busybox.exe", "base64", "base64" ], [ "busybox.exe", "base64", "base64" ],
[ "busybox.exe", "basename", "basename" ], [ "busybox.exe", "basename", "basename" ],
[ "busybox.exe", "bash", "bash" ], [ "busybox.exe", "bash", "bash", "-l" ],
[ "busybox.exe", "bbconfig", "bbconfig" ], [ "busybox.exe", "bbconfig", "bbconfig" ],
[ "busybox.exe", "bunzip2", "bunzip2" ], [ "busybox.exe", "bunzip2", "bunzip2" ],
[ "busybox.exe", "bzcat", "bzcat" ], [ "busybox.exe", "bzcat", "bzcat" ],
@ -119,5 +119,16 @@
[ "busybox.exe", "xzcat", "xzcat" ], [ "busybox.exe", "xzcat", "xzcat" ],
[ "busybox.exe", "yes", "yes" ], [ "busybox.exe", "yes", "yes" ],
[ "busybox.exe", "zcat", "zcat" ] [ "busybox.exe", "zcat", "zcat" ]
] ],
"post_install": "
if(!(test-path ~/.profile)) {
'creating ~/.profile'
@\"
if [ -e ~/.bashrc ]
then
source ~/.bashrc
fi
\"@ | out-file -en oem ~/.profile
}
"
} }