How to display the current directory in buildroot's rootfs?
Answer.
Modify /etc/profile and add the following definitions:
Code: Select all
HOSTNAME='/bin/hostname'
PS1='[\u@\w]#'
export PS1 HOSTNAME
Code: Select all
[root@/etc/profile.d]#"
#MA35D1, #rootfs, #buildroot.