File: 60install-mouseemu

package info (click to toggle)
hw-detect 1.107
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,496 kB
  • sloc: sh: 1,306; makefile: 98; ansic: 39
file content (26 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh
set -e

# We need to do this after the base system has been installed so that
# laptop-detect is available.

SUBARCH="$(archdetect)"

# Install mouseemu on systems likely to have single-button mice
case $SUBARCH in
	i386/mac|amd64/mac)
		if apt-install laptop-detect && \
		   chroot /target laptop-detect >/dev/null 2>&1; then
			apt-install mouseemu || true
		fi
	;;
	powerpc/powermac_*)
		# mouseemu causes an oops somewhere in the input layer on
		# powerpc64 at the moment, so don't install it.
		if [ ! -d /proc/ppc64 ]; then
			apt-install mouseemu || true
		fi
	;;
esac

exit 0