From 6bc51247d0ec8707009d4a07f6ceb9a13e789d8a Mon Sep 17 00:00:00 2001 From: pascal Date: Sun, 4 Jan 2009 23:34:09 +0000 Subject: =?UTF-8?q?=C3=84nderungen=20an=20uiae=20und=20asdf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1371 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/bin/installiere_neo | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'linux/bin') diff --git a/linux/bin/installiere_neo b/linux/bin/installiere_neo index 3d16a2b..84b8469 100755 --- a/linux/bin/installiere_neo +++ b/linux/bin/installiere_neo @@ -1244,6 +1244,12 @@ die() { exit 1 } +numlock_manually() { + echo "\$1" >&2 + echo "Please turn Numlock \$2 and press ›Enter‹ to continue." >&2 + read +} + set_xmodmap() { if [ -e "\${PATH_XMODMAP}" ]; then if [ -f "\$@" ]; then @@ -1291,26 +1297,26 @@ if [ -z \${DISPLAY} ]; then set_keymap "\${NEO_CONSOLE_KEYMAP}" if [ -e "\${PATH_SETLEDS}" ]; then - "\${PATH_SETLEDS}" +num || die "Failed to set NUM status." + "\${PATH_SETLEDS}" +num || numlock_manually "Failed to set NUM status." on else - die "setleds does not exist, cannot set NUM status." + numlock_manually "setleds does not exist, cannot set NUM status." on fi else if [ -e "\${PATH_NUMLOCKX}" ]; then - "\${PATH_NUMLOCKX}" off || die "Failed to turn off Numlock." + "\${PATH_NUMLOCKX}" off || numlock_manually "Failed to turn off Numlock." off else - die "numlockx not found, cannot turn off Numlock." + numlock_manually "numlockx not found, cannot turn off Numlock." off fi if [ -e "\${PATH_XSET}" ]; then for modifier in 51 94; do - "\${PATH_XSET}" -r \${modifier} || die "Failed to unset repeat for modifier \${modifier}." + "\${PATH_XSET}" -r \${modifier} || echo "Failed to unset repeat for modifier \${modifier}." >&2 done for deadkey in 21 35 49; do - "\${PATH_XSET}" -r \${deadkey} || die "Failed to unset repeat for deadkey \${deakey}." + "\${PATH_XSET}" -r \${deadkey} || echo "Failed to unset repeat for deadkey \${deakey}." >&2 done else - die "xset not found, cannot set modifiers and dead keys." + echo "xset not found, cannot set modifiers and dead keys." >&2 fi case "\${NEO_X_VARIANTE}" in @@ -1426,23 +1432,23 @@ if [ -z \${DISPLAY} ]; then if [ -e "\${PATH_SETLEDS}" ]; then if [ "\${NUM_LOCK_STATUS}" = "on" ]; then - "\${PATH_SETLEDS}" -num || die "Failed to set num lock status to on." + "\${PATH_SETLEDS}" -num || echo "Failed to set num lock status to on." >&2 else - "\${PATH_SETLEDS}" +num || die "Failed to set num lock status to off." + "\${PATH_SETLEDS}" +num || echo "Failed to set num lock status to off." >&2 fi else - die "setleds does not exist, cannot set NUM status." + echo "setleds does not exist, cannot set NUM status." >&2 fi else if [ -e "\${PATH_XSET}" ]; then for modifier in 51 94; do - "\${PATH_XSET}" r \${modifier} || die "Failed to set repeat for modifier \${modifier}." + "\${PATH_XSET}" r \${modifier} || echo "Failed to set repeat for modifier \${modifier}." >&2 done for deadkey in 21 35 49; do - "\${PATH_XSET}" r \${deadkey} || die "Failed to set repeat for deadkey \${deakey}." + "\${PATH_XSET}" r \${deadkey} || echo "Failed to set repeat for deadkey \${deakey}." >&2 done else - die "xset not found, cannot set modifiers and dead keys." + echo "xset not found, cannot set modifiers and dead keys." >&2 fi case "\${STD_X_VARIANTE}" in -- cgit v1.2.3