mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 14:21:27 +00:00
Hide 2nd Wi-Fi interface from NM on pine64 legacy
This commit is contained in:
parent
43c72f5649
commit
a51bbbdb9c
1 changed files with 5 additions and 1 deletions
|
@ -49,10 +49,14 @@ write_uboot_platform()
|
|||
family_tweaks()
|
||||
{
|
||||
if [[ $BRANCH == default ]]; then
|
||||
# Bluetooth
|
||||
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/
|
||||
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/
|
||||
if [[ $BOARD == pinebook-a64 ]]; then
|
||||
cp $SRC/lib/config/asound.state.pinebooka64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state
|
||||
|
|
Loading…
Add table
Reference in a new issue