# swupdate helpers

## init.d/swupdate

openrc init script, if required.

## etc/ swupdate.cfg, hwrevision, sw-versions

example swupdate configurations for /etc.

- swupdate.cfg contains base settings like public key location,
  and if required suricatta polling (hawkbit)
- hwrevision should contain two words, "boardname" and "revision".
boardname is not used, but can be used to select alternative software
revision must be 1.0 for now
- sw-versions should be automatically generated after each update.

## etc/fw_env.config

fw_printenv/fw_setenv configuration, required for swupdate.
This should also be generated by swupdate after writing a new OS
image (as env position is variable)

## gen-image

gen-image moved to its own repo:
https://sv-scm.atmark.tech/cgit/atmark/alpine/swupdate-mkimage.git

## libexec/atmark-swupdate-pre.sh / post.sh

Utilities to run as pre/post command for swupdate, required for rollback
versioning


## udev/swupdate-usb.rules

swupdate-usb.rules placed in /etc/udev/rules.d (or /lib/udev/rules.d)
will automatically run '/usr/libexec/swupdate-usb sdXY' when a usb drive
with filesystem is plugged in.


## libexec/swupdate-usb

Utility to mount partition (argument) to /mnt and run swupdate-client
(assumes swupdate service is running)
