Subject: Allowing wsconsctl -w at startup
To: None <tech-userlevel@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: tech-userlevel
Date: 04/25/2002 20:40:36
--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all

I've modified /etc/rc.d/wscons script to allow setting any wscons variable
at startup. But before send-pr'ing it, I want to post it here.

The patch allows doing things like this in /etc/wscons.conf:
setvar repeat.deln=3D50

Which will effectively set repeat.deln to 50. I haven't figured any other
way to do this cleanly at startup.

----- patch -----
--- wscons.orig	Thu Apr 25 20:32:47 2002
+++ wscons	Thu Apr 25 20:34:17 2002
@@ -151,6 +151,10 @@
 				cmd=3D"$wscfg -m $arg1"
 				eval $DOIT $cmd
 				;;
+			setvar)
+				cmd=3D"$wsctl -w $arg1"
+				eval $DOIT $cmd
+				;;
 		esac
 	done ) < $config
 }
----- patch -----

Do you see this ok?

Thanks

--=20
Of course it runs NetBSD - http://www.netbsd.org
HispaBSD member - http://www.hispabsd.org
Julio Merino <jmmv@hispabsd.org>

--yrj/dFKFPuw6o+aM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8yE2kzz00ZOPKycwRAvJIAJ4k1PpTPBbOJ7GvRUZ85givxjX0kgCgnfEj
fBDLP5SLL2eqbupxoK9fNLI=
=crwP
-----END PGP SIGNATURE-----

--yrj/dFKFPuw6o+aM--