add fallback from /etc/sysconfig/mouse to /etc/sysconfig/gpm
This commit is contained in:
parent
2df288c7fb
commit
f599200952
15
gpm.init
15
gpm.init
@ -11,17 +11,22 @@
|
|||||||
|
|
||||||
# source function library
|
# source function library
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm
|
|
||||||
|
|
||||||
MOUSECFG=/etc/sysconfig/gpm
|
if test -e /etc/sysconfig/mouse
|
||||||
|
then
|
||||||
|
source /etc/sysconfig/mouse
|
||||||
|
MOUSECFG=/etc/sysconfig/mouse
|
||||||
|
elif test -e /etc/sysconfig/gpm
|
||||||
|
then
|
||||||
|
source /etc/sysconfig/gpm
|
||||||
|
MOUSECFG=/etc/sysconfig/gpm
|
||||||
|
fi
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n $"Starting console mouse services: "
|
echo -n $"Starting console mouse services: "
|
||||||
if [ -f "$MOUSECFG" ]; then
|
if [ -z "$MOUSECFG" ]; then
|
||||||
. "$MOUSECFG"
|
|
||||||
else
|
|
||||||
echo $"(no mouse is configured)"
|
echo $"(no mouse is configured)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
6
gpm.spec
6
gpm.spec
@ -172,9 +172,9 @@ fi
|
|||||||
%{_libdir}/libgpm.so
|
%{_libdir}/libgpm.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Sep 23 2004 Adrian Havill <havill@redhat.com> 1.20.1-53
|
* Thu Sep 23 2004 Adrian Havill <havill@redhat.com> 1.20.1-54
|
||||||
- change mouse config file from /etc/sysconfig/mouse to /etc/sysconfig/gpm
|
- change init so that MOUSECFG fallsback to /etc/sysconfig/gpm if
|
||||||
(#133141)
|
/etc/sysconfig/mouse doesn't exist (#133141)
|
||||||
- fixed compile vs new kernheaders (#131783)
|
- fixed compile vs new kernheaders (#131783)
|
||||||
|
|
||||||
* Tue May 04 2004 Adrian Havill <havill@redhat.com> 1.20.1-49
|
* Tue May 04 2004 Adrian Havill <havill@redhat.com> 1.20.1-49
|
||||||
|
Loading…
Reference in New Issue
Block a user