From 5d6ea8b3450b9b85e222815e131e2772f62650d1 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Mon, 21 Apr 2003 12:04:57 +0000 Subject: - further eliminate consoletype calls with CONSOLETYPE --- initscripts-s390.patch | 2 +- initscripts.spec | 1 + rc.d/rc.sysinit | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/initscripts-s390.patch b/initscripts-s390.patch index e9a46146..d09f92ca 100644 --- a/initscripts-s390.patch +++ b/initscripts-s390.patch @@ -20,5 +20,5 @@ +# System date on S390 is always set correctly +action $"System date: `date` " date - if [ "`/sbin/consoletype`" = "vt" ]; then + if [ "$CONSOLETYPE" = "vt" ]; then # Load keymap diff --git a/initscripts.spec b/initscripts.spec index a1819096..f3ed6a67 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -249,6 +249,7 @@ rm -rf $RPM_BUILD_ROOT * Mon Apr 21 2003 Florian La Roche - initscripts-s390.patch: remove not needed parts about PNP= - inittab.390: sync with normal version +- rc.sysinit: remove two further calls to /sbin/consoletype with $CONSOLETYPE * Fri Apr 18 2003 Florian La Roche - sysconfig/init.s390: set LOGLEVEL=3 as for other archs diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index dbbaa43b..49aabc7c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -44,7 +44,7 @@ if [ "$HOSTTYPE" != "s390" -a "$HOSTTYPE" != "s390x" ]; then fi fi -if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then +if [ "$CONSOLETYPE" = "vt" -a -x /sbin/setsysfont ]; then echo -n "Setting default font ($SYSFONT): " /sbin/setsysfont if [ $? -eq 0 ]; then @@ -130,7 +130,7 @@ esac action $"Setting clock $CLOCKDEF: `date`" date -if [ "`/sbin/consoletype`" = "vt" -a -x /bin/loadkeys ]; then +if [ "$CONSOLETYPE" = "vt" -a -x /bin/loadkeys ]; then KEYTABLE= KEYMAP= if [ -f /etc/sysconfig/console/default.kmap ]; then -- cgit v1.2.1