Last change
on this file since d8a3177 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago |
Import of Bootscripts
|
-
Property mode
set to
100644
|
File size:
938 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Begin $rc_base/init.d/gpm
|
---|
3 |
|
---|
4 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
5 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
6 | # GPM specific parts by Mark Hymers - markh@linuxfromscratch.org
|
---|
7 |
|
---|
8 | #$LastChangedBy: dnicholson $
|
---|
9 | #$Date: 2006-10-11 02:42:17 -0500 (Wed, 11 Oct 2006) $
|
---|
10 |
|
---|
11 | . /etc/sysconfig/rc
|
---|
12 | . $rc_functions
|
---|
13 |
|
---|
14 | if [ -f /etc/sysconfig/mouse ]
|
---|
15 | then
|
---|
16 | . /etc/sysconfig/mouse
|
---|
17 | fi
|
---|
18 |
|
---|
19 | if [ -z "$MDEVICE" ] || [ -z "$PROTOCOL" ]
|
---|
20 | then
|
---|
21 | echo "Please create an /etc/sysconfig/mouse file containing"
|
---|
22 | echo "MDEVICE and PROTOCOL values"
|
---|
23 | exit 1;
|
---|
24 | fi
|
---|
25 |
|
---|
26 | case "$1" in
|
---|
27 | start)
|
---|
28 | boot_mesg "Starting gpm..."
|
---|
29 | loadproc /usr/sbin/gpm -m $MDEVICE -t $PROTOCOL $GPMOPTS
|
---|
30 | ;;
|
---|
31 |
|
---|
32 | stop)
|
---|
33 | boot_mesg "Stopping gpm..."
|
---|
34 | killproc /usr/sbin/gpm
|
---|
35 | ;;
|
---|
36 |
|
---|
37 | restart)
|
---|
38 | $0 stop
|
---|
39 | sleep 1
|
---|
40 | $0 start
|
---|
41 | ;;
|
---|
42 |
|
---|
43 | status)
|
---|
44 | statusproc /usr/sbin/gpm
|
---|
45 | ;;
|
---|
46 |
|
---|
47 | *)
|
---|
48 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
49 | exit 1
|
---|
50 | ;;
|
---|
51 | esac
|
---|
52 |
|
---|
53 | # End $rc_base/init.d/gpm
|
---|
Note:
See
TracBrowser
for help on using the repository browser.