diff options
author | pascal <pascal@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-01-04 23:34:09 +0000 |
---|---|---|
committer | pascal <pascal@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-01-04 23:34:09 +0000 |
commit | 6bc51247d0ec8707009d4a07f6ceb9a13e789d8a (patch) | |
tree | 6d14b9f2ce7c22fe344b79b41117f64b2b402417 /linux/bin/installiere_neo | |
parent | b3d9c3589fe8c8f0c64282cc3a9957a8996bc508 (diff) |
Änderungen an uiae und asdf
git-svn-id: https://svn.neo-layout.org@1371 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to '')
-rwxr-xr-x | linux/bin/installiere_neo | 32 |
1 files changed, 19 insertions, 13 deletions
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 |