]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
partresize: add copy of broadcom firmware settings for nanopi-r1
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Aug 2019 07:09:34 +0000 (07:09 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Aug 2019 07:09:34 +0000 (07:09 +0000)
I added this to partresize like the APU scon enable because this
is the only script that runs on flashimage at first boot only and
remount root writeable.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/partresize

index 0c2866c0b9d79f8168464388204f3273acf976e6..f3d8dfe20eaf6121008e24b93410f709e29faf87 100644 (file)
@@ -3,6 +3,8 @@
 # Begin $rc_base/init.d/partresize
 #
 # Description : Resize the root partition to the drivesize
+#              and setup some platform or hardware options in
+#              flashimage
 #
 # Authors     : Arne Fitzenreiter - arne_f@ipfire.org
 #
@@ -46,6 +48,14 @@ case "${1}" in
                                scon="on"
                        fi
 
+                       # Install AP6112 wlan config on NanoPi R1
+                       case "$(< /proc/device-tree/model )" in
+                               "FriendlyElec NanoPi-R1")
+                                       cp -f   /lib/firmware/brcm/brcmfmac43430-sdio.AP6212.txt \
+                                               /lib/firmware/brcm/brcmfmac43430-sdio.txt
+                               ;;
+                       esac 2>/dev/null
+
                        mount /boot > /dev/null
                        if [ -e /boot/grub/grub.cfg ]; then
                                # swtich permanent to serial console if it was selected on first boot