summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
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
commit9ef1e6f607ae447d2eead4ca196e303b43cc405b (patch)
treebc6fc6bd21be10df21c6eb73e5e23abeab295eca /make_slackware_live.sh
parentf62699d27a2e3b5b084c825cb3888f1a16189b96 (diff)
downloadliveslak-9ef1e6f607ae447d2eead4ca196e303b43cc405b.tar.gz
liveslak-9ef1e6f607ae447d2eead4ca196e303b43cc405b.tar.xz
Enable mouse support in runlevel 3.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh21
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*