Re-enable GPM service startup
authorMichael Prokop <mika@grml.org>
Thu, 20 Apr 2017 10:12:12 +0000 (12:12 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 20 Apr 2017 10:17:45 +0000 (12:17 +0200)
It's still needed, both for file-rc and systemd systems.

autoconfig.functions
grml-autoconfig

index 802db38..1c5c46b 100755 (executable)
@@ -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
 }
 # }}}
 
index b98c747..08c0ccc 100755 (executable)
@@ -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