diff options
author | Eric Hameleers <alien@slackware.com> | 2016-01-22 14:26:51 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-01-22 14:26:51 +0100 |
commit | 9ef1e6f607ae447d2eead4ca196e303b43cc405b (patch) | |
tree | bc6fc6bd21be10df21c6eb73e5e23abeab295eca /make_slackware_live.sh | |
parent | f62699d27a2e3b5b084c825cb3888f1a16189b96 (diff) | |
download | liveslak-9ef1e6f607ae447d2eead4ca196e303b43cc405b.tar.gz liveslak-9ef1e6f607ae447d2eead4ca196e303b43cc405b.tar.xz |
Enable mouse support in runlevel 3.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 9ec5d62..7b13f70 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -826,6 +826,27 @@ setfont -v ter-120b EOT chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.font +# Enable mouse support in runlevel 3: +cat <<"EOM" > ${LIVE_ROOTDIR}/etc/rc.d/rc.gpm +#!/bin/sh +# Start/stop/restart the GPM mouse server: +[ ! -x /usr/sbin/gpm ] && return +MTYPE="imps2" +if [ "$1" = "stop" ]; then + echo "Stopping gpm..." + /usr/sbin/gpm -k +elif [ "$1" = "restart" ]; then + echo "Restarting gpm..." + /usr/sbin/gpm -k + sleep 1 + /usr/sbin/gpm -m /dev/mouse -t ${MTYPE} +else # assume $1 = start: + echo "Starting gpm: /usr/sbin/gpm -m /dev/mouse -t ${MTYPE}" + /usr/sbin/gpm -m /dev/mouse -t ${MTYPE} +fi +EOM +chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.gpm + # Remove ssh server keys - new unique keys will be generated # at first boot of the live system: rm -f ${LIVE_ROOTDIR}/etc/ssh/*key* |