project:cfg:BoardConfig_IPC:overlay:Fix permission errors and naming issues in overlay files.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2024-11-18 21:03:15 +08:00
parent 1723f324ab
commit 6b4836bd3e
10 changed files with 118 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
function lf_rm() {
for file in "$@"; do
if [ -e "$file" ]; then
echo "Deleting: $file"
rm -rf "$file"
#else
#echo "File not found: $file"
fi
done
}
# remove unused files
function remove_data()
{
lf_rm $RK_PROJECT_PACKAGE_USERDATA_DIR/*.sh
lf_rm $RK_PROJECT_PACKAGE_USERDATA_DIR/*.bmp
}
#=========================
# run
#=========================
remove_data