From: Michael Prokop Date: Thu, 20 Apr 2017 10:12:12 +0000 (+0200) Subject: Re-enable GPM service startup X-Git-Tag: v0.15.2~2 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=4dca8013673e8de2bf8adc4fa45eb31eda1bc78a;ds=sidebyside Re-enable GPM service startup It's still needed, both for file-rc and systemd systems. --- 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 } # }}} diff --git a/grml-autoconfig b/grml-autoconfig index b98c747..08c0ccc 100755 --- a/grml-autoconfig +++ b/grml-autoconfig @@ -133,6 +133,8 @@ checkvalue $CONFIG_PARTCONF && config_partconf checkvalue $CONFIG_MIXER && config_mixer +checkvalue $CONFIG_GPM && config_gpm + checkvalue $CONFIG_SERVICES && config_services checkvalue $CONFIG_DEBNET && config_debnet