mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
connman install default settings file on first start
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
c473eeb55f
commit
b6ba0427e2
8
packages/network/connman/config/settings
Normal file
8
packages/network/connman/config/settings
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[global]
|
||||||
|
OfflineMode=false
|
||||||
|
|
||||||
|
[Wired]
|
||||||
|
Enable=true
|
||||||
|
|
||||||
|
[WiFi]
|
||||||
|
Enable=true
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user