From af1ae9306f9ab66e93d7efbc704d08ac23258777 Mon Sep 17 00:00:00 2001 From: pascal Date: Sun, 4 Jan 2009 23:06:30 +0000 Subject: Abbruch bei fehlendem numlockx ist nicht nötig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1368 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/bin/asdf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'linux/bin') diff --git a/linux/bin/asdf b/linux/bin/asdf index f12f304..0c3ab46 100755 --- a/linux/bin/asdf +++ b/linux/bin/asdf @@ -40,6 +40,12 @@ die() { exit 1 } +numlock_manually() { + echo "$1" + echo "Please turn Numlock $2 and press ›Enter‹ to continue." + read +} + set_xmodmap() { if [ -e "${PATH_XMODMAP}" ]; then if [ -f "$@" ]; then @@ -87,15 +93,15 @@ 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 -- cgit v1.2.3