Files
Nero 04d826f563 dispatcher-modem-setup: new modem setup dispatcher
There are cases where the user wants to configure some actions
to be run on a modem before ModemManager takes over full control.

The new "modem setup" dispatcher scripts allow running operations
in the modem after the port probing has happened and we know which
ports are usable in the device.

The scripts may e.g. change device configuration, enable modem
logging infrastructure, or any other process that would otherwise
conflict with MM's own modem management operations.
2024-04-16 12:14:45 +02:00

27 lines
778 B
Meson

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2024 Nero Sinaro <xu.zhang@fibocom.com>
# Shipped but disabled Modem setup tools
mm_modemsetupdiravailable = mm_pkgdatadir / 'modem-setup.available.d'
# Directory for user-enabled tools
mm_modemsetupdiruser = mm_pkgsysconfdir / 'modem-setup.d'
# Directory for package-enabled tools
mm_modemsetupdirpackage = mm_pkglibdir / 'modem-setup.d'
# This is a test file
examples = files(
'0000:0000'
)
install_data(
examples,
install_mode: 'rwx------',
install_dir: mm_modemsetupdiravailable,
)
mkdir_cmd = 'mkdir -p ${DESTDIR}@0@'
meson.add_install_script('sh', '-c', mkdir_cmd.format(mm_prefix / mm_modemsetupdiruser))
meson.add_install_script('sh', '-c', mkdir_cmd.format(mm_prefix / mm_modemsetupdirpackage))