diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-11-04 19:29:16 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2020-11-05 18:29:35 -0500 |
commit | d3ef3b3d67a6bea6001029ecde452a022da4ffeb (patch) | |
tree | b3d64c71590c1b0443c4afde71abc466ba0851d0 /init.d/autoconfig | |
parent | remove hwsetup usage (diff) | |
download | livecd-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>
Diffstat (limited to 'init.d/autoconfig')
-rw-r--r-- | init.d/autoconfig | 5 |
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)" |