Date: Wed, 11 Jan 2012 19:13:41 +0200 From: Nikos Vassiliadis <nvass@gmx.com> To: freebsd-rc@freebsd.org Subject: allscreens extension Message-ID: <4F0DC345.5090605@gmx.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------040204060601080103070008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I am using this small addition to etc/rc.d/syscons. It extends the allscreens functionality with an allscreens_exclude variable which controls the virtual terminals that are excluded from running the allscreens command. I use it mainly to exclude ttyv0 from switching to raster mode while allscreens are set to raster mode. I can file a proper PR if that sounds interesting to the project? Nikos --------------040204060601080103070008 Content-Type: text/plain; name="syscons.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="syscons.diff" Index: syscons =================================================================== RCS file: /home/ncvs/src/etc/rc.d/syscons,v retrieving revision 1.23.2.1 diff -u -r1.23.2.1 syscons --- syscons 23 Sep 2011 00:51:37 -0000 1.23.2.1 +++ syscons 31 Oct 2011 11:15:42 -0000 @@ -250,7 +250,12 @@ if [ -n "${allscreens_flags}" ]; then sc_init echo -n ' allscreens' - for ttyv in /dev/ttyv*; do + if [ -n "$allscreens_exclude" ]; then + ttyvs=`printf '%s\n' /dev/ttyv* | egrep -v "$allscreens_exclude"` + else + ttyvs=/dev/ttyv* + fi + for ttyv in $ttyvs; do vidcontrol ${allscreens_flags} < ${ttyv} > ${ttyv} 2>&1 done fi --------------040204060601080103070008--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F0DC345.5090605>