c78d0885e9
Thu Aug 07 2003 Adrian Havill <havill@redhat.com> 1.20.1-38 - Gpm_Open() NULL deref revisited (#101104). Patch by <leonardjo@hetnet.nl> Wed Jul 30 2003 Adrian Havill <havill@redhat.com> 1.20.1-37 - removed auto-add of repeat with -M (#84310) Tue Jul 29 2003 Adrian Havill <havill@redhat.com> 1.20.1-36 - fixed grammar typos in the init script (#89109) - don't deref NULL string in Gpm_Open (#101104) Wed Jul 02 2003 Adrian Havill <havill@redhat.com> 1.20.1-35 - remove debug output from gpm_report() to prevent spurious debugging msgs even when not in debug mode (#98210) Thu Jun 26 2003 Adrian Havill <havill@redhat.com> 1.20.1-33 - reversed -t and -m params in init script, removed $OPTION - add doc blurb regarding no auto-repeat with multiple mice Tue Jun 24 2003 Adrian Havill <havill@redhat.com> 1.20.1-32 - update version - add -lm for ceil() - add hltest, mouse-test for all but zSeries Mon Jun 16 2003 Jakub Jelinek <jakub@redhat.com> - don't link against -lncurses, instead make wgetch and stdscr weak undefined symbols to break library dependency cycle Thu Jun 12 2003 Elliot Lee <sopwith@redhat.com> - Remove pam requirement Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt
92 lines
1.5 KiB
Bash
Executable File
92 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# chkconfig: 2345 85 15
|
|
# description: GPM adds mouse support to text-based Linux applications such \
|
|
# as the Midnight Commander. It also allows mouse-based console \
|
|
# cut-and-paste operations, and includes support for pop-up \
|
|
# menus on the console.
|
|
# processname: gpm
|
|
# pidfile: /var/run/gpm.pid
|
|
# config: /etc/sysconfig/mouse
|
|
|
|
# source function library
|
|
. /etc/init.d/functions
|
|
[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm
|
|
|
|
MOUSECFG=/etc/sysconfig/mouse
|
|
|
|
RETVAL=0
|
|
|
|
start() {
|
|
echo -n $"Starting console mouse services: "
|
|
if [ -f "$MOUSECFG" ]; then
|
|
. "$MOUSECFG"
|
|
else
|
|
echo $"(no mouse is configured)"
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$MOUSETYPE" = "none" ]; then
|
|
echo $"(no mouse is configured)"
|
|
exit 0
|
|
fi
|
|
|
|
|
|
if [ "$MOUSETYPE" = "Microsoft" ]; then
|
|
MOUSETYPE=ms
|
|
fi
|
|
|
|
if [ -z "$DEVICE" ]; then
|
|
DEVICE="/dev/mouse"
|
|
fi
|
|
|
|
if [ -n "$MOUSETYPE" ]; then
|
|
daemon gpm -m $DEVICE -t $MOUSETYPE
|
|
else
|
|
daemon gpm -m $DEVICE
|
|
fi
|
|
RETVAL=$?
|
|
echo
|
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/gpm
|
|
}
|
|
|
|
stop() {
|
|
echo -n $"Shutting down console mouse services: "
|
|
killproc gpm
|
|
RETVAL=$?
|
|
|
|
echo
|
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/gpm
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
stop
|
|
start
|
|
RETVAL=$?
|
|
;;
|
|
condrestart)
|
|
if [ -f /var/lock/subsys/gpm ]; then
|
|
stop
|
|
start
|
|
RETVAL=$?
|
|
fi
|
|
;;
|
|
status)
|
|
status gpm
|
|
RETVAL=$?
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $RETVAL
|
|
|