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:
Stephan Raue 2011-07-29 23:49:36 +02:00
parent 5c3c51d416
commit fcd270cef7

View File

@ -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