An unusual question regarding rc.conf.
In my rc.conf I set the virtual console properties in this way
For some machines I also have KDE installed and usually I start KDM. In that scenario I comment the above lines and uncomment the line
Sometimes, I want to disable KDM to test Xorg settings and such, that is switching from a 'console only' to a 'GUI only' environment and back. Now, the file rc.conf is executed as a shell script. It's correct to put in it things like the following?
I think this works, but I wish to have an opinion about the DOs and DON'Ts sh code in rc.conf file.
In my rc.conf I set the virtual console properties in this way
Code:
allscreens_flags="MODE_283"
font8x8="swiss-8x8"
font8x14="swiss-8x14"
font8x16="swiss-8x16"
keymap="it.iso.kbd"
keyrate="fast"
For some machines I also have KDE installed and usually I start KDM. In that scenario I comment the above lines and uncomment the line
Code:
kdm_enable="YES"
Sometimes, I want to disable KDM to test Xorg settings and such, that is switching from a 'console only' to a 'GUI only' environment and back. Now, the file rc.conf is executed as a shell script. It's correct to put in it things like the following?
Code:
console_mode="YES"
...
keymap="it.iso.kbd"
keyrate="fast"
if [ "$console_mode" = "YES" ]; then
allscreens_flags="MODE_283"
font8x8="swiss-8x8"
font8x14="swiss-8x14"
font8x16="swiss-8x16"
else
kdm_enable="YES"
fi
I think this works, but I wish to have an opinion about the DOs and DON'Ts sh code in rc.conf file.