diff options
author | Michael Januszewski <spock@gentoo.org> | 2007-08-19 21:22:30 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2007-08-19 21:22:30 +0000 |
commit | 04744d54740670df1c41c9f77783cbb37c757058 (patch) | |
tree | ce38ef8908f4d3c379b81fe8315b0f89f6d8d687 /media-gfx/splashutils | |
parent | dev-dotnet/ml-pnet: version bump (diff) | |
download | gentoo-2-04744d54740670df1c41c9f77783cbb37c757058.tar.gz gentoo-2-04744d54740670df1c41c9f77783cbb37c757058.tar.bz2 gentoo-2-04744d54740670df1c41c9f77783cbb37c757058.zip |
Fix keyboard detection in baselayout-1 splash-functions.sh.
(Portage version: 2.1.3.6)
Diffstat (limited to 'media-gfx/splashutils')
-rw-r--r-- | media-gfx/splashutils/ChangeLog | 6 | ||||
-rw-r--r-- | media-gfx/splashutils/files/splashutils-1.5-baselayout-1.patch | 63 | ||||
-rw-r--r-- | media-gfx/splashutils/splashutils-1.5.ebuild | 5 |
3 files changed, 71 insertions, 3 deletions
diff --git a/media-gfx/splashutils/ChangeLog b/media-gfx/splashutils/ChangeLog index ed8793468314..bb224faf6503 100644 --- a/media-gfx/splashutils/ChangeLog +++ b/media-gfx/splashutils/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-gfx/splashutils # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/ChangeLog,v 1.104 2007/08/14 20:17:45 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/ChangeLog,v 1.105 2007/08/19 21:22:30 spock Exp $ + + 19 Aug 2007; Michał Januszewski <spock@gentoo.org> + +files/splashutils-1.5-baselayout-1.patch, splashutils-1.5.ebuild: + Fix keyboard detection in baselayout-1 splash-functions.sh. 14 Aug 2007; Michał Januszewski <spock@gentoo.org> +files/splashutils-1.5-fbsplash.patch, splashutils-1.5.ebuild: diff --git a/media-gfx/splashutils/files/splashutils-1.5-baselayout-1.patch b/media-gfx/splashutils/files/splashutils-1.5-baselayout-1.patch new file mode 100644 index 000000000000..6c13b8e64d5f --- /dev/null +++ b/media-gfx/splashutils/files/splashutils-1.5-baselayout-1.patch @@ -0,0 +1,63 @@ +diff --git a/gentoo/splash-functions-bl1.sh b/gentoo/splash-functions-bl1.sh +index 4c07359..b1ba65d 100644 +--- a/gentoo/splash-functions-bl1.sh ++++ b/gentoo/splash-functions-bl1.sh +@@ -22,6 +22,7 @@ + # is a size limit in KB, and it should probably be left with the + # default value. + spl_daemon="/sbin/fbsplashd.static" ++spl_fbcd="/sbin/fbcondecor_ctl" + spl_bindir="/lib/splash/bin" + spl_cachedir="/lib/splash/cache" + spl_tmpdir="/lib/splash/tmp" +@@ -215,7 +216,7 @@ splash_start() { + rm -f ${spl_fifo} 2>/dev/null + + if [[ ${SPLASH_MODE_REQ} == "verbose" ]]; then +- /sbin/fbcondecor_ctl -c on 2>/dev/null ++ ${spl_fbcd} -c on 2>/dev/null + return 0 + elif [[ ${SPLASH_MODE_REQ} != "silent" ]]; then + return 0 +@@ -263,7 +264,7 @@ splash_start() { + [[ ${SPLASH_KDMODE} == "GRAPHICS" ]] && options="--kdgraphics" + + # Start the splash daemon +- BOOT_MSG="$(splash_get_boot_message)" ${spl_daemon} -d --theme=${SPLASH_THEME} --pidfile=${spl_pidfile} ${options} ++ BOOT_MSG="$(splash_get_boot_message)" ${spl_daemon} --theme=${SPLASH_THEME} --pidfile=${spl_pidfile} ${options} + + # Set the silent TTY and boot message + splash_comm_send "set tty silent ${SPLASH_TTY}" +@@ -271,12 +272,12 @@ splash_start() { + if [[ ${SPLASH_MODE_REQ} == "silent" ]] ; then + splash_comm_send "set mode silent" + splash_comm_send "repaint" +- /sbin/fbcondecor_ctl -c on 2>/dev/null ++ ${spl_fbcd} -c on 2>/dev/null + fi + + # Set the input device if it exists. This will make it possible to use F2 to + # switch from verbose to silent. +- local t=$(grep -Hsi keyboard /sys/class/input/input*/name | sed -e 's#.*input\\([0-9]*\\)/name.*#event\\1#') ++ local t=$(grep -Hsi keyboard /sys/class/input/input*/name | sed -e 's#.*input\([0-9]*\)/name.*#event\1#') + if [[ -z "${t}" ]]; then + t=$(grep -Hsi keyboard /sys/class/input/event*/device/driver/description | grep -o 'event[0-9]\+') + if [[ -z "${t}" ]]; then +@@ -351,7 +352,7 @@ splash_get_mode() { + if [[ ${ctty} == "${SPLASH_TTY}" ]]; then + echo "silent" + else +- if [[ -z "$(/sbin/fbcondecor_ctl -c getstate --vc=$(($ctty-1)) 2>/dev/null | grep off)" ]]; then ++ if [[ -z "$(${spl_fbcd} -c getstate --vc=$(($ctty-1)) 2>/dev/null | grep off)" ]]; then + echo "verbose" + else + echo "off" +@@ -371,7 +372,7 @@ splash_verbose() { + # Switches to silent mode. + splash_silent() { + splash_comm_send "set mode silent" +- /sbin/fbcondecor_ctl -c on 2>/dev/null ++ ${spl_fbcd} -c on 2>/dev/null + } + + splash_load_vars() { diff --git a/media-gfx/splashutils/splashutils-1.5.ebuild b/media-gfx/splashutils/splashutils-1.5.ebuild index 6448e607ff15..442aea705362 100644 --- a/media-gfx/splashutils/splashutils-1.5.ebuild +++ b/media-gfx/splashutils/splashutils-1.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/splashutils-1.5.ebuild,v 1.3 2007/08/14 20:17:45 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/splashutils-1.5.ebuild,v 1.4 2007/08/19 21:22:30 spock Exp $ inherit eutils multilib toolchain-funcs @@ -66,7 +66,8 @@ src_unpack() { rm ${S}/libs/zlib-${V_ZLIB}/Makefile cd ${SG} - epatch ${FILESDIR}/splashutils-1.5-fbsplash.patch + epatch ${FILESDIR}/${P}-fbsplash.patch + epatch ${FILESDIR}/${P}-baselayout-1.patch cd ${S} ln -sf ${S} ${WORKDIR}/core |