BillH
Group: Members
Posts: 34
Joined: April 2004 |
|
Posted: April 01 2004,04:18 |
|
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??
-------------- Keep it simple.
|