Root Prompt in Terminal Has Changed

i logged in as root user in terminal and to my surprise, the root prompt has changed. i’m not sure what i did that changed the prompt. i’ve no problems logging in as root, it just bothers me that i see this error each time i log in (at least for today). i want the old prompt back. can anybody explain what caused this and how can i get the old one back? thanks!

http://img706.imageshack.us/img706/3166/terminalc.png](http://imageshack.us/photo/my-images/706/terminalc.png/)

Uploaded with ImageShack.us

I’m not seeing this

What version of openSUSE?
Have you made any mods?
What repos do you have?

The original of the line in question is:

if test -d /proc/iSeries -a \( "$tty" = "/dev/tty1" -o "$tty" = "/dev/console" \) ; then

You must have edited the file and removed the backslash.

openSUSE 12.1, no modifications made (especially on the /etc/profile file), i have the default repos for openSUSE, PackMan, libdvdcss

i don’t recall editing the /etc/profile file. i don’t have such reasons to edit it anyway. is it possible that the OS itself made the modification? what could’ve caused that file to be changed?

i got the correct prompt back by following @ken_yap’s code post. i added the \ after "-a " and "/dev/console ". it puzzles me that i didn’t do anything with the profile file yet was changed.

thanks for the help! :slight_smile:

On 01/07/2012 04:06 PM, hoychoy wrote:
> what could’ve caused that file to be changed?

an error in RAM while writing to disk, or a disk error…

are you having any other problems?

it might be a good idea to check your hard drive with SMART, and test
ram by booting from an openSUSE install disk and selecting “Memory Test”
from the first green screen…and, let it run overnight (it takes a long
time to test all memory)

other than that, it could have been a sunspot which flipped a switch…


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 2012-01-07 16:06, hoychoy wrote:

> i don’t recall editing the /etc/profile file. i don’t have such reasons
> to edit it anyway. is it possible that the OS itself made the
> modification? what could’ve caused that file to be changed?

Check the date of the file (too late, you edited it). Check what rpm owns
that file, check updates in rpm database.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)