aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonnie Barnes <djb@redhat.com>1998-05-06 19:38:31 +0000
committerDonnie Barnes <djb@redhat.com>1998-05-06 19:38:31 +0000
commit12b8b6b479d757bd40696aaeaffc750bf15ee165 (patch)
tree1238a34b462fa2aa0c29aea9141a2cfa8ea8bce1
parentae9a0d81bae06fc0c6cd7923e8e8a33831f3ed25 (diff)
downloadinitscripts-12b8b6b479d757bd40696aaeaffc750bf15ee165.tar
initscripts-12b8b6b479d757bd40696aaeaffc750bf15ee165.tar.gz
initscripts-12b8b6b479d757bd40696aaeaffc750bf15ee165.tar.bz2
initscripts-12b8b6b479d757bd40696aaeaffc750bf15ee165.tar.xz
initscripts-12b8b6b479d757bd40696aaeaffc750bf15ee165.zip
added added sysconfig/i18n support
-rw-r--r--Makefile1
-rw-r--r--initscripts.spec7
-rwxr-xr-xrc.d/rc.sysinit21
-rw-r--r--sysconfig.txt16
4 files changed, 44 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 39443f91..1f5d4a56 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ install:
mkdir -p $(ROOT)/etc
install -m644 -o root -g root inittab $(ROOT)/etc
install -m644 -o root -g root adjtime $(ROOT)/etc
+ install -m755 -o root -g root setsysfont $(ROOT)/sbin
cp -af rc.d sysconfig ppp $(ROOT)/etc
mkdir -p $(ROOT)/sbin
mv $(ROOT)/etc/sysconfig/network-scripts/ifup $(ROOT)/sbin
diff --git a/initscripts.spec b/initscripts.spec
index ff581a87..4d0d3b8f 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,6 +1,6 @@
Summary: inittab and /etc/rc.d scripts
Name: initscripts
-%define version 3.58
+%define version 3.60
Version: %{version}
Copyright: GPL
Group: Base
@@ -16,6 +16,10 @@ levels, and shut the system down cleanly. It also contains the scripts
that activate and deactivate most network interfaces.
%changelog
+* Wed May 06 1998 Donnie Barnes <djb@redhat.com>
+
+- added system font and language setting
+
* Mon May 04 1998 Michael K. Johnson <johnsonm@redhat.com>
- Added missing files to packagelist.
@@ -399,6 +403,7 @@ rm -rf $RPM_BUILD_ROOT
%config(missingok) /etc/rc.d/init.d/*
%config /etc/rc.d/rc
%config /etc/rc.d/rc.local
+/sbin/setsysfont
/bin/doexec
/bin/ipcalc
/bin/usleep
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index c07d43ae..052b70b4 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -32,6 +32,22 @@ else
domainname ""
fi
+if [ -f /etc/sysconfig/i18n ]; then
+ . /etc/sysconfig/i18n
+fi
+
+if [ -n "$LANG" ]; then
+ export LANG
+fi
+
+if [ -n "$LINGUAS" ]; then
+ export LINGUAS
+fi
+
+if [ -n "$SYSTERM" ]; then
+ export TERM=$SYSTERM
+fi
+
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
else
@@ -199,6 +215,11 @@ fi
echo "Mounting local filesystems."
mount -a -t nonfs,proc
+# set the console font
+if [ -x /sbin/setsysfont ]; then
+ /sbin/setsysfont
+fi
+
if [ -x /sbin/quotaon ]; then
echo "Turning on user and group quotas for local filesystems"
/sbin/quotaon -a
diff --git a/sysconfig.txt b/sysconfig.txt
index 5002179c..cc77b902 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -286,3 +286,19 @@ Files in /etc/sysconfig/network-scripts/
up /etc/resolv.conf from the version dhcpcd dropped in
/etc/dhcpc/resolv.conf
+/etc/sysconfig/i18n
+
+ LANG= can be any two letter ISO language code
+ LINGUAS= can be a : separated list of language codes
+ SYSTERM= use to set default TERM environment variable
+
+ The above three variables are used in rc.sysinit.
+
+ SYSFONT= any font with is legal input to the 'setfont' command (see
+ kbd package)
+
+ The above is used by the /sbin/setsysfont command (which is run
+ by rc.sysinit at boot time).
+
+
+