mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 03:17:48 +00:00
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:
15
feeds/tip/certificates/files/lib/preinit/75_certificates
Normal file
15
feeds/tip/certificates/files/lib/preinit/75_certificates
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user