busybox: create system config file to use with our init scripts

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-11 22:19:52 +01:00
parent 8f10d83337
commit 1bf39de9c4

View File

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