From 172f8086dc5089c8804e4bbb8f3d8480d6eb79bf Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 17 Jul 2008 20:53:29 +0200 Subject: [PATCH] Check for /dev/input/mice before starting GPM --- autoconfig.functions | 12 ++++++++---- debian/changelog | 6 ++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index 8197d4b..94f786c 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1639,10 +1639,14 @@ config_gpm(){ if checkbootparam "nogpm"; then ewarn "Not starting GPM as requested on boot commandline." ; eend 0 else - einfo "Starting gpm in background." -# /etc/init.d/gpm start 1>>$DEBUG & - ( while [ ! -e /dev/psaux ]; do sleep 5; done; /etc/init.d/gpm start 1>>$DEBUG ) & - eend 0 + if ! [ -r /dev/input/mice ] ; then + eerror "No mouse found - not starting GPM." ; eend 1 + else + einfo "Starting gpm in background." + /etc/init.d/gpm start 1>>$DEBUG & + # ( while [ ! -e /dev/psaux ]; do sleep 5; done; /etc/init.d/gpm start 1>>$DEBUG ) & + eend 0 + fi fi } # }}} diff --git a/debian/changelog b/debian/changelog index d3110d6..be1d370 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-autoconfig (0.8.9) unstable; urgency=low + + * Check for /dev/input/mice before starting GPM. + + -- Michael Prokop Thu, 17 Jul 2008 20:53:10 +0200 + grml-autoconfig (0.8.8) unstable; urgency=low * Mention job handling stuff when using debug=noscreen. -- 2.1.4