[Buildroot] [PATCH 1/3] OrangePi Plus rootfs-overlay files
Peter Korsgaard
peter at korsgaard.com
Sun May 15 21:06:56 UTC 2016
>>>>> "Troy" == Troy Dack <troy at dack.com.au> writes:
> Signed-off-by: Troy Dack <troy at dack.com.au>
> ---
> .../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
More information about the buildroot
mailing list