mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
busybox: overwrite sample files on boot to have the latest version, keep configs untouched
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5c3c51d416
commit
fcd270cef7
@ -33,9 +33,13 @@ if [ -d /usr/config ]; then
|
|||||||
mkdir -p /storage/.config/$dir
|
mkdir -p /storage/.config/$dir
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in `find . -type f`; do
|
for config in `find . -type f -name "*.conf"`; do
|
||||||
if [ ! -f /storage/.config/$file ]; then
|
if [ ! -f /storage/.config/$config ]; then
|
||||||
cp $file /storage/.config/$file
|
cp $config /storage/.config/$config
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for sample in `find . -type f -name "*.sample"`; do
|
||||||
|
cp $sample /storage/.config/$sample
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user