bcm27xx: rpi4: luci: set architecture

This commit is contained in:
AmadeusGhost 2020-04-03 19:30:07 +08:00
parent 80718084a7
commit 86d19b3700
3 changed files with 13 additions and 12 deletions

View File

@ -13,7 +13,7 @@ move_config() {
insmod vfat
mkdir -p /boot
mount -t vfat -o rw,noatime $BOOTPART /boot
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
fi
}

View File

@ -0,0 +1,12 @@
#!/bin/sh
set_rpi4() {
case "$(board_name)" in
raspberrypi,4-model-b)
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
sed -i 's|pcdata(boardinfo.system or "?")|luci.sys.exec("uname -m") or "?"|g' /usr/lib/lua/luci/view/admin_status/index.htm
;;
esac
}
boot_hook_add preinit_main set_rpi4

View File

@ -1,11 +0,0 @@
#!/bin/sh
set_wifi_vht() {
case "$(board_name)" in
raspberrypi,4-model-b)
sed -i 's/VHT80/VHT40/g' /lib/wifi/mac80211.sh
;;
esac
}
boot_hook_add preinit_main set_wifi_vht