summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-11-04 19:29:16 -0800
committerMatt Turner <mattst88@gmail.com>2020-11-05 18:29:35 -0500
commitd3ef3b3d67a6bea6001029ecde452a022da4ffeb (patch)
treeb3d64c71590c1b0443c4afde71abc466ba0851d0
parentremove hwsetup usage (diff)
downloadlivecd-tools-d3ef3b3d67a6bea6001029ecde452a022da4ffeb.tar.gz
livecd-tools-d3ef3b3d67a6bea6001029ecde452a022da4ffeb.tar.bz2
livecd-tools-d3ef3b3d67a6bea6001029ecde452a022da4ffeb.zip
autoconfig: don't autostart gpm if /dev/input/mice is not present
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--init.d/autoconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/autoconfig b/init.d/autoconfig
index 1dbfc5a..15900c2 100644
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -228,7 +228,10 @@ list_services() {
svcs="${svcs} $(check_svc ${APM} apmd)"
svcs="${svcs} $(check_svc ${BRLTTY} brltty)"
svcs="${svcs} $(check_svc ${COLDPLUG} coldplug hotplug)"
- svcs="${svcs} $(check_svc ${GPM} gpm)"
+ if [ -c /dev/input/mice ]
+ then
+ svcs="${svcs} $(check_svc ${GPM} gpm)"
+ fi
svcs="${svcs} $(check_svc ${IDEDMA} hdparm)"
svcs="${svcs} $(check_svc ${NFS} nfsclient)"
svcs="${svcs} $(check_svc ${PASSWD} pwgen)"