From 61e2d117f8db2bf1323eb8010bd56c77a114df32 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 5 Mar 2002 19:59:17 +0000 Subject: [PATCH] - allow override console list by FBTERMINALS in sysconfig - release 19 Changed files: fbset.init -> 1.13 fbset.spec -> 1.37 fbset.sysconfig -> 1.6 --- fbset.init | 10 +++++++--- fbset.spec | 2 +- fbset.sysconfig | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/fbset.init b/fbset.init index 1c7a320..07c0a82 100644 --- a/fbset.init +++ b/fbset.init @@ -57,14 +57,18 @@ case "$1" in # check if devfs (workaround: -a option don't work at all) if [ -d /dev/vc ]; then - DEVICES="`ls /dev/vc/* | sed 's|/dev/vc/||g'`" + if [ -z "$FBTERMINALS" ]; then + FBTERMINALS="`ls /dev/vc/* | sed 's|/dev/vc/||g'`" + fi FBDEV=`echo /dev/fb/${FBDEV_NUM}` else - DEVICES="`cat /etc/inittab | grep '^[0-9]*:' | cut -f1 -d:`" + if [ -z "$FBTERMINALS" ]; then + FBTERMINALS="`cat /etc/inittab | grep '^[0-9]*:' | cut -f1 -d:`" + fi FBDEV=`echo /dev/fb${FBDEV_NUM}` fi - for cons in $DEVICES; do + for cons in $FBTERMINALS; do /usr/bin/open -c $cons -- /usr/sbin/fbset -fb $FBDEV ${DEPTH_options} $FBMODE_default done diff --git a/fbset.spec b/fbset.spec index acd4b48..afb83fd 100644 --- a/fbset.spec +++ b/fbset.spec @@ -2,7 +2,7 @@ Summary: Framebuffer utilities for changing video modes Summary(pl): Nardzêdzie do zmieniania trybu graficznego we framebufferze Name: fbset Version: 2.1 -Release: 18 +Release: 19 License: GPL Group: Applications/System Source0: http://home.tvd.be/cr26864/Linux/fbdev/%{name}-%{version}.tar.gz diff --git a/fbset.sysconfig b/fbset.sysconfig index 65a1791..da03da3 100644 --- a/fbset.sysconfig +++ b/fbset.sysconfig @@ -8,7 +8,9 @@ FBMODE_default= FBMODULE= DEPTH= FBDEV_NUM= +FBTERMINALS= #FBMODE_default="640x480-100" #FBMODULE=matroxfb #DEPTH=16 #FBDEV_NUM=0 +#FBTERMINALS="1 2 3 4 5 6 7 8" -- 2.44.0