From: Peter Korsgaard Date: Sun, 15 May 2016 23:06:56 +0200 Subject: [Buildroot] [PATCH 1/3] OrangePi Plus rootfs-overlay files In-Reply-To: <1463268790-1076-2-git-send-email-troy@dack.com.au> (Troy Dack's message of "Sun, 15 May 2016 09:33:08 +1000") References: <1463268790-1076-1-git-send-email-troy@dack.com.au> <1463268790-1076-2-git-send-email-troy@dack.com.au> Message-ID: <87h9dzghe7.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Troy" == Troy Dack writes: > Signed-off-by: Troy Dack > --- > .../orangepi_plus/rootfs-overlay/etc/profile | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100644 board/orangepi/orangepi_plus/rootfs-overlay/etc/profile > diff --git a/board/orangepi/orangepi_plus/rootfs-overlay/etc/profile > b/board/orangepi/orangepi_plus/rootfs-overlay/etc/profile > new file mode 100644 > index 0000000..a4ddccd > --- /dev/null > +++ b/board/orangepi/orangepi_plus/rootfs-overlay/etc/profile > @@ -0,0 +1,21 @@ > +export PATH=/bin:/sbin:/usr/bin:/usr/sbin > + > +if [ "$PS1" ]; then > + if [ "`id -u`" -eq 0 ]; then > + export PS1='\h:\w\# ' > + else > + export PS1='\h:\w\$ ' > + fi > +fi > + > +export PAGER='/bin/more ' > +export EDITOR='/bin/vi' > + > +# Source configuration files from /etc/profile.d > +for i in /etc/profile.d/*.sh ; do > + if [ -r "$i" ]; then > + . $i > + fi > + unset i > +done Why? This doesn't seem critical/specific to this board? Any specific reason to change the prompt? If this is generally useful, then perhaps we should just change it in system/skeleton instead? Please verify that this shell works with busybox ash/hush and bash. -- Bye, Peter Korsgaard