Don't empty /vendor/etc/audio when very full, when prop is changed too

This commit is contained in:
Pierre-Hugues Husson 2021-06-07 12:33:35 -04:00
parent 475de0067d
commit 2f79cf8662

View File

@ -129,7 +129,9 @@ if [ "$1" == "persist.sys.phh.caf.audio_policy" ];then
fi
else
umount /vendor/etc/audio_policy_configuration.xml
mount /mnt/phh/empty_dir /vendor/etc/audio
if [ $(find /vendor/etc/audio -type f |wc -l) -le 3 ];then
mount /mnt/phh/empty_dir /vendor/etc/audio
fi
fi
restartAudio
exit