From 2f79cf8662de246011482bbebdae58e8ac69d3a5 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 7 Jun 2021 12:33:35 -0400 Subject: [PATCH] Don't empty /vendor/etc/audio when very full, when prop is changed too --- phh-prop-handler.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phh-prop-handler.sh b/phh-prop-handler.sh index 251f390..90a79cd 100644 --- a/phh-prop-handler.sh +++ b/phh-prop-handler.sh @@ -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