- avoid spawning multiple copies of inputattach, and kill process when gpm
shuts down (#135776)
This commit is contained in:
parent
63174f30f9
commit
1959126089
5
gpm.init
5
gpm.init
@ -39,11 +39,13 @@ start() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$IMOUSETYPE" ]; then
|
if [ -n "$IMOUSETYPE" ]; then
|
||||||
|
if [ "$(pidofproc inputattach)" = "" ]; then
|
||||||
modprobe sermouse > /dev/null 2>&1
|
modprobe sermouse > /dev/null 2>&1
|
||||||
/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
|
/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
|
||||||
DEVICE="/dev/input/mice"
|
DEVICE="/dev/input/mice"
|
||||||
MOUSETYPE="exps2"
|
MOUSETYPE="exps2"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$MOUSETYPE" ]; then
|
if [ -n "$MOUSETYPE" ]; then
|
||||||
daemon gpm -m $DEVICE -t $MOUSETYPE $OPTIONS
|
daemon gpm -m $DEVICE -t $MOUSETYPE $OPTIONS
|
||||||
@ -58,6 +60,9 @@ start() {
|
|||||||
stop() {
|
stop() {
|
||||||
echo -n $"Shutting down console mouse services: "
|
echo -n $"Shutting down console mouse services: "
|
||||||
killproc gpm
|
killproc gpm
|
||||||
|
if [ -n "$IMOUSETYPE" ]; then
|
||||||
|
killproc inputattach
|
||||||
|
fi
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
6
gpm.spec
6
gpm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A mouse server for the Linux console.
|
Summary: A mouse server for the Linux console.
|
||||||
Name: gpm
|
Name: gpm
|
||||||
Version: 1.20.1
|
Version: 1.20.1
|
||||||
Release: 65
|
Release: 66
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
|
Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
|
||||||
@ -174,6 +174,10 @@ fi
|
|||||||
%{_libdir}/libgpm.so
|
%{_libdir}/libgpm.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 21 2004 Adrian Havill <havill@redhat.com> 1.20.1-66
|
||||||
|
- avoid spawning multiple copies of inputattach, and kill process
|
||||||
|
when gpm shuts down (#135776)
|
||||||
|
|
||||||
* Wed Oct 20 2004 Bill Nottingham <notting@redhat.com> 1.20.1-65
|
* Wed Oct 20 2004 Bill Nottingham <notting@redhat.com> 1.20.1-65
|
||||||
- remove buildroot paths from gpm.info, fixing #135305
|
- remove buildroot paths from gpm.info, fixing #135305
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user