X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=1c5c46b1b45877f88522ae9a91e70eb5f303db51;hp=802db3894627721e837bedf9454168f5b75e7908;hb=4dca8013673e8de2bf8adc4fa45eb31eda1bc78a;hpb=44350e68ffa68cb675d7ebaadcd6570edfe9d241 diff --git a/autoconfig.functions b/autoconfig.functions index 802db38..1c5c46b 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1205,18 +1205,18 @@ config_syslog(){ # {{{ gpm config_gpm(){ - if checkbootparam 'nogpm'; then - ewarn "Not starting GPM as requested on boot commandline." ; eend 0 - else - if ! [ -r /dev/input/mice ] ; then + if checkbootparam 'nogpm'; then + ewarn "Not starting GPM as requested on boot commandline." ; eend 0 + else + if ! [ -r /dev/input/mice ] ; then eerror "No mouse found - not starting GPM." ; eend 1 - else + else einfo "Starting gpm in background." service_wrapper gpm start >>$DEBUG & # ( while [ ! -e /dev/psaux ]; do sleep 5; done; /etc/init.d/gpm start >>$DEBUG ) & eend 0 - fi - fi + fi + fi } # }}}