Other Help Topics :: ENHANCE in "Getting Started"



In the "Getting Started" file in 0.6.2, under "Saving Your Configuration", it says "For the popular enhance, just remove the comment in the default .xinitrc."

.xinit includes the following:

grep enhance /proc/cmdline >/dev/null
if [ $? == 0 ]; then
enhance &>/dev/null &
fi

OK, so I"m new at this, but seems to me that Getting Started should tell us to comment out lines 1, 2 and 4 in the fragment above.

# grep enhance /proc/cmdline >/dev/null
# if [ $? == 0 ]; then
enhance &>/dev/null &
# fi

This would force enhance every time, right?

Like I said, I"m new at this, so help me out on this next point, someone.

This 'if [ $? == 0 ]' looks at the return code from grep, right? So if the string "enhance" is found on the knoppix line, the "if" condition is met. OK? So if we change the grep to "grep plain /proc/cmdline >/dev/null" and change the "if" to look for failure if[ $? == 1 ] (because 1 is the return code for grep failure), then we always get enhance UNLESS we type "knoppix plain" at boot prompt.

grep plain /proc/cmdline >/dev/null
if [ $? == 1 ]; then
enhance &>/dev/null &
fi

Am I right??

I think the "Getting Started" comment is a throwback to previous versions.

I find the easiest thing is to comment out all of those lines and just insert:

enhance &

before

fluxbox

in .xinitrc

for a hard drive install

Cappy

Bill,

Yes, you are right. With all the new improvements, we sometimes overlook things like that. Especially documentation.

Cappy, you are right too, that is the easy way to do it!

If "enhance" is popular, I mean, if it is more often used than not, why not make it the default behavior and and make "plain" an option? Is this poll material? :D
Yes, I think it is poll material. Go ahead and start one! :)

Cappy

Next Page...
original here.