mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +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
|
||||
done
|
||||
|
||||
for file in `find . -type f`; do
|
||||
if [ ! -f /storage/.config/$file ]; then
|
||||
cp $file /storage/.config/$file
|
||||
for config in `find . -type f -name "*.conf"`; do
|
||||
if [ ! -f /storage/.config/$config ]; then
|
||||
cp $config /storage/.config/$config
|
||||
fi
|
||||
done
|
||||
|
||||
for sample in `find . -type f -name "*.sample"`; do
|
||||
cp $sample /storage/.config/$sample
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user