From 4e9a5e6986007de519ecfa84735cd4d212a872fc Mon Sep 17 00:00:00 2001 From: ianchb Date: Sat, 18 Feb 2023 22:53:47 +0800 Subject: [PATCH] Solve conflicts with MIUI-AOD-Freely --- post-fs-data.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/post-fs-data.sh b/post-fs-data.sh index 8ae5eee..9fe1e6f 100644 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -11,5 +11,11 @@ done CHANGE=$MODDIR/system/$TARGET_PATH mkdir -p $CHANGE rm $CHANGE/* -cp -f $TARGET_PATH/* $CHANGE/ +if [ ! -f $MODDIR/../maodf.marker ]; then + cp -f $TARGET_PATH/* $CHANGE/ + touch $MODDIR/../mff.marker +else + cp -f $MODDIR/../MIUI_AOD_Freely/system/$TARGET_PATH/* $CHANGE/ + rm -f $MODDIR/../maodf.marker +fi sed -i 's/"support_ota_validate">truefalse