36 lines
1.0 KiB
INI
36 lines
1.0 KiB
INI
# SWUpdate runtime configuration
|
|
|
|
globals = {
|
|
verbose = true;
|
|
loglevel = 5;
|
|
syslog = true;
|
|
# Create a file to notify scripts that update is complete
|
|
postupdatecmd = "touch /tmp/swupdate.done";
|
|
};
|
|
|
|
# Partition handler for raw partitions
|
|
raw-handler = {
|
|
# Example: Specify which partitions can be updated
|
|
partitions = ( { name = "rootfs-B"; device = "/dev/mmcblk0p3"; } );
|
|
};
|
|
|
|
# For bootloader environment
|
|
bootloader = {
|
|
# U-Boot environment
|
|
environment = {
|
|
device = "/dev/mmcblk0p1";
|
|
file = "uboot-env.img";
|
|
};
|
|
# What to set after successful update
|
|
set-variables = (
|
|
{name = "bootcount"; value = "0";},
|
|
{name = "upgrade_available"; value = "1";},
|
|
{name = "active_part"; value = "${inactive_part}";},
|
|
{name = "active_root"; value = "${inactive_root}";},
|
|
{name = "inactive_part"; value = "${active_part}";},
|
|
{name = "inactive_root"; value = "${active_root}";}
|
|
);
|
|
};
|
|
|
|
# Include additional configuration files
|
|
include = "conf.d/*.cfg"; |