connman: install and setup default main.conf shipped with connman, set 'PreferredTechnologies'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-03-21 05:27:34 +01:00
parent c543af36c2
commit 72664e1359
2 changed files with 4 additions and 8 deletions

View File

@ -1,7 +0,0 @@
[General]
# Enable background scanning. Default is true.
# Background scanning will start every 5 minutes unless
# the scan list is empty. In that case, a simple backoff
# mechanism starting from 10s up to 5 minutes will run.
BackgroundScanning = true

View File

@ -29,7 +29,10 @@ mkdir -p $INSTALL/etc
ln -sf /var/cache/resolv.conf $INSTALL/etc/resolv.conf
mkdir -p $INSTALL/etc/connman
cp $PKG_DIR/config/main.conf $INSTALL/etc/connman
cp $PKG_BUILD/src/main.conf $INSTALL/etc/connman
sed -i $INSTALL/etc/connman/main.conf \
-e "s,^# BackgroundScanning.*,BackgroundScanning = true,g" \
-e "s,^# PreferredTechnologies.*,PreferredTechnologies = ethernet,wifi,cellular,g"
mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/src/connman.conf $INSTALL/etc/dbus-1/system.d