/etc/rc and /etc/wsconsctl.conf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

/etc/rc and /etc/wsconsctl.conf

Michael Knudsen-3
Hello,

I suggest the following patch:

Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.277
diff -u -p -r1.277 rc
--- rc 2006/01/12 21:54:15 1.277
+++ rc 2006/01/27 22:37:43
@@ -213,6 +213,8 @@ if [ -f /sbin/kbd -a -f /etc/kbdtype ];
  kbd `cat /etc/kbdtype`
 fi
 
+wsconsctl_conf
+
 if [ X"${pf}" != X"NO" ]; then
  RULES="block all"
  RULES="$RULES\npass on lo0"
@@ -690,8 +692,6 @@ if [ X"${mopd_flags}" != X"NO" -a -d /tf
 fi
 
 echo '.'
-
-wsconsctl_conf
 
 mixerctl_conf
 

The reason for this patch is that I've remapped caps lock to control,
and sometimes I boot my laptop on networks with no dhcpd. Thus, I turn
to ^C to kill dhclient, but I need to use the real key as the remapping
hasn't been done yet, and this is slightly annoying.

The diff above will cause the wscons configuration file to be reading
when boot is setting tty flags (kbdtype etc.). This shouldn't interfere
with network boots of diskless systems with /usr and / on separate file
systems as wsconsctl_conf uses /sbin/wsconsctl (this was miod@'s main
concern when I discussed it with him).

Comments?

Regards,
Michael.
--
`Real stupidity beats artificial intelligence every time.'
-- (Terry Pratchett, Hogfather)