bcm27xx: rpi4: luci: set architecture
This commit is contained in:
parent
80718084a7
commit
86d19b3700
@ -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
|
||||
}
|
||||
|
||||
|
||||
12
target/linux/bcm27xx/base-files/lib/preinit/82_set_rpi4
Normal file
12
target/linux/bcm27xx/base-files/lib/preinit/82_set_rpi4
Normal 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
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user