Hide 2nd Wi-Fi interface from NM on pine64 legacy

This commit is contained in:
Thomas Kaiser 2017-05-21 10:07:55 +02:00
parent 43c72f5649
commit a51bbbdb9c

View file

@ -49,10 +49,14 @@ write_uboot_platform()
family_tweaks() family_tweaks()
{ {
if [[ $BRANCH == default ]]; then if [[ $BRANCH == default ]]; then
# Bluetooth
install -m 755 $SRC/lib/bin/rtk_hciattach $CACHEDIR/$SDCARD/usr/local/bin install -m 755 $SRC/lib/bin/rtk_hciattach $CACHEDIR/$SDCARD/usr/local/bin
#
install -m 644 $SRC/lib/scripts/services/pinebook-bluetooth.service $CACHEDIR/$SDCARD/etc/systemd/system/ install -m 644 $SRC/lib/scripts/services/pinebook-bluetooth.service $CACHEDIR/$SDCARD/etc/systemd/system/
chroot $CACHEDIR/$SDCARD /bin/bash -c "systemctl --no-reload enable pinebook-bluetooth.service>/dev/null 2>&1" chroot $CACHEDIR/$SDCARD /bin/bash -c "systemctl --no-reload enable pinebook-bluetooth.service>/dev/null 2>&1"
# Wi-Fi: mask 2nd interface, disabled powermanagement
echo -e "options 8723bs if2name=p2p0 rtw_power_mgnt=0\noptions 8723cs if2name=p2p0 rtw_power_mgnt=0" \
>$CACHEDIR/$SDCARD/etc/modprobe.d/wifi-rt8723-pine64.conf
# Audio -- TODO: Use unified asound.state
mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/ mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/
if [[ $BOARD == pinebook-a64 ]]; then if [[ $BOARD == pinebook-a64 ]]; then
cp $SRC/lib/config/asound.state.pinebooka64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state cp $SRC/lib/config/asound.state.pinebooka64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state