I have a NAS drive from Western Digital. I can ssh into it, and when I log in, the first line that appears is:
BusyBox v1.20.2 (2014-10-30 15:28:59 CST) built-in shell (ash)
I don't like the default prompt that I get (echo $PS1 gives \u@\h \W \$). However, I can't find where this PS1 variable is set. My user is root and the only file in /home/root/ is .ash_history, and if I do a grep within the /etc/ directory, I get no results for PS1.
How can I find where the PS1 variable is set?
busyboxashis essentiallydash- see linux.die.net/man/1/dash for documentation./.profilefor example. FHS says that root could have home in /root so also check/root/.profile- it would work ifloginapplet was used. It doesn't look like a default bbox ash prompt, default prompt is\w \$but it's possible that WD has modified bbox source code.