package/swupdate: add progress/usb services
Install progress/usb services for swupdate based on meta-swupdate configs. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
daa46718e0
commit
0e94459ad5
1
package/swupdate/90-start-progress
Normal file
1
package/swupdate/90-start-progress
Normal file
@ -0,0 +1 @@
|
||||
exec /usr/bin/swupdate-progress -w -r &
|
9
package/swupdate/swupdate-progress.service
Normal file
9
package/swupdate/swupdate-progress.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=swupdate progress service
|
||||
After=swupdate.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/swupdate-progress -r -w
|
||||
|
||||
[Install]
|
||||
WantedBy=swupdate.service
|
8
package/swupdate/swupdate-usb@.service
Normal file
8
package/swupdate/swupdate-usb@.service
Normal file
@ -0,0 +1,8 @@
|
||||
[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
|
@ -248,6 +248,12 @@ define SWUPDATE_INSTALL_INIT_SYSTEMD
|
||||
$(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
|
||||
@ -255,6 +261,8 @@ define SWUPDATE_INSTALL_INIT_SYSV
|
||||
$(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))
|
||||
|
11
package/swupdate/swupdate.socket
Normal file
11
package/swupdate/swupdate.socket
Normal file
@ -0,0 +1,11 @@
|
||||
[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
|
Loading…
Reference in New Issue
Block a user