Unix Technical Forum

/etc/rc and /etc/wsconsctl.conf

This is a discussion on /etc/rc and /etc/wsconsctl.conf within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Hello, I suggest the following patch: Index: rc ================================================== ================= RCS file: /cvs/src/etc/rc,v retrieving revision 1.277 diff -u -p ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:04 PM
Michael Knudsen
 
Posts: n/a
Default /etc/rc and /etc/wsconsctl.conf

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)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com