diff options
author | 2001-10-26 02:29:51 +0000 | |
---|---|---|
committer | 2001-10-26 02:29:51 +0000 | |
commit | 1c6d6b6d0a84b0b4738e95e8edfc4f1836c1ec97 (patch) | |
tree | 7abe935a94906068b22cd2f434933810b22bb7b4 /sys-libs/gpm/files | |
parent | New version (diff) | |
download | gentoo-2-1c6d6b6d0a84b0b4738e95e8edfc4f1836c1ec97.tar.gz gentoo-2-1c6d6b6d0a84b0b4738e95e8edfc4f1836c1ec97.tar.bz2 gentoo-2-1c6d6b6d0a84b0b4738e95e8edfc4f1836c1ec97.zip |
some fixups. add MOUSEDEV and MOUSE check comment and example
Diffstat (limited to 'sys-libs/gpm/files')
-rw-r--r-- | sys-libs/gpm/files/gpm.rc6 | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/sys-libs/gpm/files/gpm.rc6 b/sys-libs/gpm/files/gpm.rc6 index e460100fe6ef..845d1a66ca66 100644 --- a/sys-libs/gpm/files/gpm.rc6 +++ b/sys-libs/gpm/files/gpm.rc6 @@ -1,13 +1,30 @@ #!/sbin/runscript +#you can move these into your rc.conf file if you wish +#MOUSEDEV=/dev/psaux +#MOUSE=ps2 + +need() { + need localmount +} + +checkconfig() { + if [ -z "$MOUSEDEV" ] || [ -z "$MOUSE" ] ; then + eerror "You need to setup MOUSEDEV and MOUSE first" + return 1 + fi +} + start() { - ebegin "Starting gpm" - start-stop-daemon --start --quiet --exec /usr/sbin/gpm -- -m ${MOUSEDEV} -t ${MOUSE} - eend ${?} + checkconfig || return 1 + ebegin "Starting gpm" + start-stop-daemon --start --quiet --exec /usr/sbin/gpm \ + -- -m ${MOUSEDEV} -t ${MOUSE} + eend ${?} } stop() { - ebegin "Stopping gpm" - start-stop-daemon --stop --quiet --pidfile /var/run/gpm.pid - eend ${?} + ebegin "Stopping gpm" + start-stop-daemon --stop --quiet --pidfile /var/run/gpm.pid + eend ${?} } |