summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
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*