ucentral: development update

* improve handling of the /certificates partition
* ignore sysupgrade.tgz provided by R1
* update netifd
* fix mac80211.sh bug when setting HE beamforming
* update ucentral-schema

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-06-17 08:16:49 +02:00
parent 71a5b63456
commit 1511b324ac
8 changed files with 50 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
generate_certificate_volume() {
grep certificates /proc/mtd > /dev/null
[ $? -eq 0 ] || return
ls /dev/ubi0 > /dev/null
[ $? -eq 0 ] || return
ubinfo /dev/ubi0 -N certificates > /dev/null
[ $? -eq 0 ] || {
ubirsvol /dev/ubi0 -N rootfs_data -s 20MiB
ubimkvol /dev/ubi0 -N certificates -s 2MiB
}
}
boot_hook_add preinit_main generate_certificate_volume

View File

@@ -11,7 +11,7 @@ start_service() {
ucode -m ubus -E board=/etc/board.json /usr/share/ucentral/capabilities.uc > /etc/ucentral/capabilities.json
}
/usr/share/ucentral/ucentral.uc /etc/ucentral/ucentral.cfg.0000000001
/usr/share/ucentral/ucentral.uc /etc/ucentral/ucentral.cfg.0000000001 > /dev/null
procd_open_instance
procd_set_param command "$PROG" -m uci -m fs -i /usr/share/ucentral/firstcontact.uc