Skip to content

Commit efd13d2

Browse files
committed
etc: Port iptsd-find-hidraw to iptsd-foreach
Also add a deprecation notice, since it can't handle multiple devices.
1 parent 26cf848 commit efd13d2

File tree

3 files changed

+16
-47
lines changed

3 files changed

+16
-47
lines changed

etc/iptsd-find-hidraw

-46
This file was deleted.

etc/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ install_subdir(
55
)
66

77
install_data(
8-
'iptsd-find-hidraw',
8+
'scripts/iptsd-find-hidraw',
99
install_dir: bindir,
1010
install_mode: 'rwxr-xr-x',
1111
)

etc/scripts/iptsd-find-hidraw

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
function run-iptsd-find-hidraw() {
5+
local -r script_dir="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
6+
7+
source "${script_dir}/iptsd-foreach"
8+
9+
spdlog warn "iptsd-find-hidraw is deprecated, please use iptsd-foreach"
10+
run-iptsd-foreach -t touchscreen -i 0 -- echo {}
11+
}
12+
13+
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
14+
run-iptsd-find-hidraw "$@"
15+
fi

0 commit comments

Comments
 (0)