mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
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:
24
project/cfg/BoardConfig_IPC/luckfox-userdata-pre.sh
Normal file
24
project/cfg/BoardConfig_IPC/luckfox-userdata-pre.sh
Normal 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
|
||||
Reference in New Issue
Block a user