From owner-freebsd-rc@FreeBSD.ORG Wed Jan 11 17:16:43 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3B6D106566C for ; Wed, 11 Jan 2012 17:16:42 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 4698C8FC0C for ; Wed, 11 Jan 2012 17:16:42 +0000 (UTC) Received: (qmail invoked by alias); 11 Jan 2012 17:13:51 -0000 Received: from adsl-99.109.242.37.tellas.gr (EHLO [192.168.73.194]) [109.242.37.99] by mail.gmx.com (mp-eu002) with SMTP; 11 Jan 2012 18:13:51 +0100 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1/A8IcHukLAhNusoDSeRmEDco0eKhhu/PimnXvaps TU2QCLhumRDxdT Message-ID: <4F0DC345.5090605@gmx.com> Date: Wed, 11 Jan 2012 19:13:41 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-rc@freebsd.org Content-Type: multipart/mixed; boundary="------------040204060601080103070008" X-Y-GMX-Trusted: 0 Subject: allscreens extension X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 17:16:43 -0000 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--