pmaports/modem/samsungipcd/samsungipcd.sh
Sergey Lisov 8d07a9897a
mdoem/libsamsung-ipc: upgrade to 6.0.0004 (MR 3456)
1. Upgrades the library to version 6.0.0004
2. Adds runtime overrides for detected device and board,
   to facilitate running on devices where autodetect fails.
2022-10-21 15:19:07 +03:00

18 lines
406 B
Bash

#!/sbin/openrc-run
description="AT modem emulation using libsamsung-ipc"
depends="ppp"
command="env"
command_args="samsungipcd /dev/ptywc /dev/ptywd"
supervisor="supervise-daemon"
if [[ -n "$IPC_DEVICE_NAME" ]]
then
command_args="IPC_DEVICE_NAME=$IPC_DEVICE_NAME $command_args"
fi
if [[ -n "$IPC_DEVICE_BOARD_NAME" ]]
then
command_args="IPC_DEVICE_BOARD_NAME=$IPC_DEVICE_BOARD_NAME $command_args"
fi