--- /dev/null
+[Unit]
+Description=usb media swupdate service
+Requires=swupdate-progress.service
+
+[Service]
+ExecStartPre=/bin/mount /dev/%I /mnt
+ExecStart=/bin/sh -c "swupdate-client -v /mnt/*.swu"
+ExecStopPost=/bin/umount /mnt
$(SWUPDATE_INSTALL_COMMON)
$(INSTALL) -D -m 644 package/swupdate/swupdate.service \
$(TARGET_DIR)/usr/lib/systemd/system/swupdate.service
+ $(INSTALL) -D -m 644 package/swupdate/swupdate.socket \
+ $(TARGET_DIR)/usr/lib/systemd/system/swupdate.socket
+ $(INSTALL) -D -m 644 package/swupdate/swupdate-usb@.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/swupdate-usb@.service
+ $(INSTALL) -D -m 644 package/swupdate/swupdate-progress.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/swupdate-progress.service
$(INSTALL) -D -m 644 package/swupdate/tmpfiles-swupdate.conf \
$(TARGET_DIR)/usr/lib/tmpfiles.d/tmpfiles-swupdate.conf
endef
$(SWUPDATE_INSTALL_COMMON)
$(INSTALL) -D -m 755 package/swupdate/S80swupdate \
$(TARGET_DIR)/etc/init.d/S80swupdate
+ $(INSTALL) -D -m 644 package/swupdate/90-start-progress \
+ $(TARGET_DIR)/usr/lib/swupdate/conf.d/90-start-progress
endef
$(eval $(kconfig-package))
--- /dev/null
+[Unit]
+Description=SWUpdate socket listener
+Documentation=https://github.com/sbabic/swupdate
+Documentation=https://sbabic.github.io/swupdate
+
+[Socket]
+ListenStream=/tmp/sockinstctrl
+ListenStream=/tmp/swupdateprog
+
+[Install]
+WantedBy=sockets.target