mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #3189 from chewitt/custom_connman
connman: allow user editable main.conf
This commit is contained in:
commit
f1e74d2ebb
@ -22,3 +22,10 @@
|
|||||||
mkdir -p /storage/.cache/connman
|
mkdir -p /storage/.cache/connman
|
||||||
cp /usr/share/connman/settings /storage/.cache/connman
|
cp /usr/share/connman/settings /storage/.cache/connman
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set variable for connman main.conf location
|
||||||
|
if [ -f /storage/.config/connman_main.conf ]; then
|
||||||
|
export CONNMAN_MAIN="--config=/storage/.config/connman_main.conf"
|
||||||
|
else
|
||||||
|
export CONNMAN_MAIN="--config=/etc/connman/main.conf"
|
||||||
|
fi
|
||||||
|
@ -11,8 +11,7 @@ Type=dbus
|
|||||||
BusName=net.connman
|
BusName=net.connman
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
EnvironmentFile=-/run/openelec/debug/connman.conf
|
EnvironmentFile=-/run/openelec/debug/connman.conf
|
||||||
ExecStartPre=/usr/lib/connman/connman-setup
|
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
|
||||||
ExecStart=/usr/sbin/connmand -nr $CONNMAN_DEBUG
|
|
||||||
# send SIGKILL on stop to keep ip configuration
|
# send SIGKILL on stop to keep ip configuration
|
||||||
KillSignal=SIGKILL
|
KillSignal=SIGKILL
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user