package/swupdate: add option to enable USB install
Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - do not default to 'y' - add comment ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
7a888a71c3
commit
536e209cca
@ -60,6 +60,15 @@ config BR2_PACKAGE_SWUPDATE_CONFIG
|
||||
I you wish to use your own modified swupdate configuration
|
||||
file specify the config file location with this option.
|
||||
|
||||
config BR2_PACKAGE_SWUPDATE_USB
|
||||
bool "swupdate usb"
|
||||
depends on BR2_PACKAGE_SYSTEMD
|
||||
help
|
||||
Enable update from USB disk.
|
||||
|
||||
comment "swupdate usb needs systemd"
|
||||
depends on !BR2_PACKAGE_SYSTEMD
|
||||
|
||||
config BR2_PACKAGE_SWUPDATE_WEBSERVER
|
||||
bool "swupdate webserver"
|
||||
default y
|
||||
|
1
package/swupdate/swupdate-usb.rules
Normal file
1
package/swupdate/swupdate-usb.rules
Normal file
@ -0,0 +1 @@
|
||||
ACTION=="add", KERNEL=="sd*", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", TAG+="systemd", ENV{SYSTEMD_WANTS}+="swupdate-usb@%k.service"
|
@ -252,6 +252,9 @@ define SWUPDATE_INSTALL_INIT_SYSTEMD
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/swupdate.socket
|
||||
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-usb@.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/swupdate-usb@.service
|
||||
$(if $(BR2_PACKAGE_SWUPDATE_USB), \
|
||||
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-usb.rules \
|
||||
$(TARGET_DIR)/lib/udev/rules.d/swupdate-usb.rules)
|
||||
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-progress.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/swupdate-progress.service
|
||||
$(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/tmpfiles-swupdate.conf \
|
||||
|
Loading…
Reference in New Issue
Block a user