Skip to content

Commit 1e3ab29

Browse files
committed
buildimg.sh: remove generic hostapd configs on r4 due to specific ones
1 parent df1be3f commit 1e3ab29

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

buildimg.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@ if [[ ${board} != "bpi-r2pro" ]];then
199199
fi
200200
done
201201
ls -lh mnt/BPI-ROOT/usr/local/{,s}bin/
202-
sudo chroot $targetdir bash -c "ln -fs hostapd_wlan0.conf /etc/hostapd/hostapd.conf"
202+
if [[ "$board" == "bpi-r4" ]]; then
203+
sudo rm $targetdir/etc/hostapd/hostapd_wlan*.conf
204+
sudo chroot $targetdir bash -c "ln -fs hostapd_2g4.conf /etc/hostapd/hostapd.conf"
205+
else
206+
sudo chroot $targetdir bash -c "ln -fs hostapd_wlan0.conf /etc/hostapd/hostapd.conf"
207+
fi
208+
ls -lh mnt/BPI-ROOT/etc/hostapd/
203209
fi
204210
#copy firmware
205211
if [[ ! -d firmware ]];

0 commit comments

Comments
 (0)