mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-04 00:17:49 +00:00
busybox: create system config file to use with our init scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8f10d83337
commit
1bf39de9c4
@ -23,11 +23,13 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
progress "copy userconfig and samples"
|
||||
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
|
||||
|
||||
if [ -d /usr/config ]; then
|
||||
progress "copy userconfig and samples"
|
||||
|
||||
cd /usr/config
|
||||
$IONICE mkdir -p /storage/.config
|
||||
mkdir -p /storage/.config
|
||||
|
||||
for dir in `find . -type d`; do
|
||||
mkdir -p /storage/.config/$dir
|
||||
@ -39,3 +41,10 @@ if [ -d /usr/config ]; then
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -f "$OPENELEC_SETTINGS" ]; then
|
||||
progress "creating system settings"
|
||||
|
||||
mkdir -p /var/config
|
||||
cat "$OPENELEC_SETTINGS" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d' > /var/config/settings.conf
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user