connman install default settings file on first start

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-01-21 01:28:24 +01:00
parent c473eeb55f
commit b6ba0427e2
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,8 @@
[global]
OfflineMode=false
[Wired]
Enable=true
[WiFi]
Enable=true

View File

@ -29,9 +29,14 @@ mkdir -p /run/connman
progress "starting loopback device" progress "starting loopback device"
ifconfig lo up ifconfig lo up
# creating initial settings file
progress "creating initial connman settings file"
if [ ! -f /storage/.cache/connman/settings ]; then
cp /usr/share/connman/settings /storage/.cache/connman
fi
# starting Connection manager # starting Connection manager
progress "starting Connection manager" progress "starting Connection manager"
if [ -f $HOME/.config/debug.connman ]; then if [ -f $HOME/.config/debug.connman ]; then
/usr/sbin/connmand -d > /dev/null 2>&1 /usr/sbin/connmand -d > /dev/null 2>&1
else else

View File

@ -52,6 +52,9 @@ mkdir -p $INSTALL/usr/sbin
mkdir -p $INSTALL/usr/config mkdir -p $INSTALL/usr/config
cp $PKG_DIR/config/hosts.conf $INSTALL/usr/config cp $PKG_DIR/config/hosts.conf $INSTALL/usr/config
mkdir -p $INSTALL/usr/share/connman/
cp $PKG_DIR/config/settings $INSTALL/usr/share/connman/
if [ "$PPTP_SUPPORT" = yes -o "$OPENVPN_SUPPORT" = yes ]; then if [ "$PPTP_SUPPORT" = yes -o "$OPENVPN_SUPPORT" = yes ]; then
mkdir -p $INSTALL/etc/dbus-1/system.d mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/vpn/connman-vpn-dbus.conf $INSTALL/etc/dbus-1/system.d cp $PKG_BUILD/vpn/connman-vpn-dbus.conf $INSTALL/etc/dbus-1/system.d