packages: kbd/kbd.init - some optimizations, localize vars
glen
glen at pld-linux.org
Thu Jan 27 23:08:56 CET 2011
Author: glen Date: Thu Jan 27 22:08:56 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- some optimizations, localize vars
---- Files affected:
packages/kbd:
kbd.init (1.38 -> 1.39)
---- Diffs:
================================================================
Index: packages/kbd/kbd.init
diff -u packages/kbd/kbd.init:1.38 packages/kbd/kbd.init:1.39
--- packages/kbd/kbd.init:1.38 Mon Mar 23 18:31:33 2009
+++ packages/kbd/kbd.init Thu Jan 27 23:08:51 2011
@@ -16,8 +16,6 @@
[ -f /bin/loadkeys -o -f /usr/bin/loadkeys ] || exit 0
[ -f /bin/setfont -o -f /usr/bin/setfont ] || exit 0
-[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
-
# Source function library
. /etc/rc.d/init.d/functions
@@ -25,6 +23,7 @@
exit 0
fi
+[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
. /etc/sysconfig/console
start() {
@@ -39,6 +38,7 @@
fi
# Check for devfs (workaround: -a option doesn't work at all)
+ local devpath tty cons
if [ -d /dev/vc ]; then
devpath="/dev/vc/"
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kbd/kbd.init?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list