2022-09-23 16:09:09 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="AT modem emulation using libsamsung-ipc"
|
|
|
|
depends="ppp"
|
|
|
|
|
2022-09-23 07:17:56 +00:00
|
|
|
command="env"
|
|
|
|
command_args="samsungipcd /dev/ptywc /dev/ptywd"
|
2022-09-23 16:09:09 +00:00
|
|
|
supervisor="supervise-daemon"
|
2022-09-23 07:17:56 +00:00
|
|
|
|
|
|
|
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
|