summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-01-12 17:08:17 +0100
committer Eric Hameleers <alien@slackware.com>2021-01-12 17:08:17 +0100
commit4809ada8034b2bfcd890eefb9eac7f78e1f85b0f (patch)
treea8c8ce0ab76b40192deee92d1167e22a20832ec2 /make_slackware_live.sh
parent60e15cc7cb7c3c86fc27b4050405b93010dd2fc9 (diff)
downloadliveslak-4809ada8034b2bfcd890eefb9eac7f78e1f85b0f.tar.gz
liveslak-4809ada8034b2bfcd890eefb9eac7f78e1f85b0f.tar.xz
Fix the rc.gpm script generation
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index d59d495..b51e573 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1556,19 +1556,20 @@ chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.font
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}
+if [ -x /usr/sbin/gpm ]; then
+ 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
fi
EOM
chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.gpm