2021-08-29 04:46:32 +02:00
|
|
|
[Unit]
|
|
|
|
Description=usb media swupdate service
|
2022-12-13 22:10:49 +01:00
|
|
|
Requires=swupdate.service
|
2023-09-10 06:10:01 +02:00
|
|
|
Wants=swupdate-progress.service
|
2021-08-29 04:46:32 +02:00
|
|
|
|
|
|
|
[Service]
|
2023-09-10 06:10:01 +02:00
|
|
|
ExecStartPre=/bin/mkdir -p /tmp/%I
|
|
|
|
ExecStartPre=/bin/mount /dev/%I /tmp/%I
|
|
|
|
ExecStart=/bin/sh -c "swupdate-client -v /tmp/%I/*.swu"
|
|
|
|
ExecStopPost=/bin/umount /tmp/%I
|
|
|
|
ExecStopPost=/bin/rmdir /tmp/%I
|