Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh committed Sep 23, 2017
1 parent c4fc787 commit 2246f30
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,15 @@ $LATESTARTSERVICE && cp -af $INSTALLER/common/service.sh $MODPATH/service.sh

ui_print "- Migrating WCNSS_qcom_cfg.ini "
if [ -f "/system/etc/wifi/WCNSS_qcom_cfg.ini" ]; then
mkdir -p $MODPATH/system/etc/wifi/
cp -af /system/etc/wifi/WCNSS_qcom_cfg.ini $MODPATH/system/etc/wifi/WCNSS_qcom_cfg.ini
sed -i 's/gChannelBondingMode24GHz=0/gChannelBondingMode24GHz=1/g;s/gChannelBondingMode5GHz=0/gChannelBondingMode5GHz=1/g' $MODPATH/system/etc/wifi/WCNSS_qcom_cfg.ini
mkdir -p $MODPATH/system/etc/wifi/
if [ -f /dev/magisk/mirror/system/etc/wifi/WCNSS_qcom_cfg.ini ]; then
cp -af /dev/magisk/mirror/system/etc/wifi/WCNSS_qcom_cfg.ini $MODPATH/system/etc/wifi/WCNSS_qcom_cfg.ini
else
cp -af /system/etc/wifi/WCNSS_qcom_cfg.ini $MODPATH/system/etc/wifi/WCNSS_qcom_cfg.ini
fi
sed -i 's/gChannelBondingMode24GHz=0/gChannelBondingMode24GHz=1/g;s/gChannelBondingMode5GHz=0/gChannelBondingMode5GHz=1/g' $MODPATH/system/etc/wifi/WCNSS_qcom_cfg.ini
else
ui_print "- Migration FAILED"
fi

ui_print "- Setting permissions"
Expand Down

0 comments on commit 2246f30

Please sign in to comment.