Gentoo Archives: gentoo-releng

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-releng@l.g.o
Cc: Georgy Yakovlev <gyakovlev@g.o>
Subject: [gentoo-releng] [PATCH] autoconfig: don't autostart gpm if /dev/input/mice is not present
Date: Thu, 05 Nov 2020 03:29:40
Message-Id: 20201105032916.2554920-1-gyakovlev@gentoo.org
In Reply to: [gentoo-releng] [PATCH 1/2] remove special mouse handling and pre-gpm script by Georgy Yakovlev
1 Signed-off-by: Georgy Yakovlev <gyakovlev@g.o>
2 ---
3 init.d/autoconfig | 5 ++++-
4 1 file changed, 4 insertions(+), 1 deletion(-)
5
6 diff --git a/init.d/autoconfig b/init.d/autoconfig
7 index 1dbfc5a..15900c2 100644
8 --- a/init.d/autoconfig
9 +++ b/init.d/autoconfig
10 @@ -228,7 +228,10 @@ list_services() {
11 svcs="${svcs} $(check_svc ${APM} apmd)"
12 svcs="${svcs} $(check_svc ${BRLTTY} brltty)"
13 svcs="${svcs} $(check_svc ${COLDPLUG} coldplug hotplug)"
14 - svcs="${svcs} $(check_svc ${GPM} gpm)"
15 + if [ -c /dev/input/mice ]
16 + then
17 + svcs="${svcs} $(check_svc ${GPM} gpm)"
18 + fi
19 svcs="${svcs} $(check_svc ${IDEDMA} hdparm)"
20 svcs="${svcs} $(check_svc ${NFS} nfsclient)"
21 svcs="${svcs} $(check_svc ${PASSWD} pwgen)"
22 --
23 2.29.2