1[Unit]
2Description=usb media swupdate service
3Requires=swupdate.service
4Wants=swupdate-progress.service
5
6[Service]
7ExecStartPre=/bin/mkdir -p /tmp/%I
8ExecStartPre=/bin/mount /dev/%I /tmp/%I
9ExecStart=/bin/sh -c "swupdate-client -v /tmp/%I/*.swu"
10ExecStopPost=/bin/umount /tmp/%I
11ExecStopPost=/bin/rmdir /tmp/%I
12