mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
busybox:
- rework of userconfig script
This commit is contained in:
parent
2a8a1bf5ab
commit
38302a9597
@ -4,5 +4,18 @@
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
progress "copy userconfig and samples"
|
||||
|
||||
if [ -d /usr/config ]; then
|
||||
cd /usr/config
|
||||
$IONICE mkdir -p /storage/.config
|
||||
$IONICE cp -Rn /usr/config/* /storage/.config
|
||||
|
||||
for dir in `find . -type d`; do
|
||||
mkdir -p /storage/.config/$dir
|
||||
done
|
||||
|
||||
for file in `find . -type f`; do
|
||||
if [ ! -f /storage/.config/$file ]; then
|
||||
cp $file /storage/.config/$file
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user