-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (34 loc) · 970 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·37 lines (34 loc) · 970 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env sh
set -eu
say() {
printf '%s\n' "$*"
}
os="$(uname -s 2>/dev/null || printf unknown)"
arch="$(uname -m 2>/dev/null || printf unknown)"
case "$os" in
Linux)
say "Detected Linux $arch."
say ""
say "This repository contains Windows KMDF/UMDF drivers. They cannot be installed on Linux."
say "Linux support needs a separate HID/input implementation, for example a hidraw/uinput userspace driver or a kernel HID driver."
say ""
say "Nothing was installed."
exit 1
;;
MINGW*|MSYS*|CYGWIN*)
say "Detected a Windows shell."
say "Run this from Administrator PowerShell instead:"
say " Set-ExecutionPolicy -Scope Process Bypass"
say " .\\install.ps1"
exit 1
;;
Darwin)
say "Detected macOS $arch."
say "This project is for using Magic Trackpad 2 on Windows. macOS does not need this driver."
exit 1
;;
*)
say "Unsupported operating system: $os $arch"
exit 1
;;
esac