Skip to content

Commit bad9b84

Browse files
committed
etc: scripts: Deprecate iptsd-find-service as well
1 parent b2f3332 commit bad9b84

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

etc/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if service_manager.contains('systemd')
5757
)
5858

5959
install_data(
60-
'systemd/iptsd-find-service',
60+
'scripts/iptsd-find-service',
6161
install_dir: bindir,
6262
install_mode: 'rwxr-xr-x',
6363
)

etc/scripts/iptsd-find-service

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

etc/systemd/iptsd-find-service

-6
This file was deleted.

0 commit comments

Comments
 (0)