mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-05 08:57:50 +00:00
connman: use own systemd service scripts to provide network.target target where services can depend on
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
181be1ff66
commit
97cc8cbd7b
@ -88,6 +88,8 @@ PKG_MAKE_OPTS_TARGET="storagedir=/storage/.cache/connman \
|
|||||||
statedir=/run/connman"
|
statedir=/run/connman"
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
|
rm -rf $INSTALL/lib/systemd
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp -P client/connmanctl $INSTALL/usr/bin
|
cp -P client/connmanctl $INSTALL/usr/bin
|
||||||
|
|
||||||
|
13
packages/network/connman/system.d/connman-vpn.service
Normal file
13
packages/network/connman/system.d/connman-vpn.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=ConnMan VPN service
|
||||||
|
Before=network.target
|
||||||
|
Wants=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=net.connman.vpn
|
||||||
|
ExecStart=/usr/sbin/connman-vpnd -n
|
||||||
|
StandardOutput=null
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
14
packages/network/connman/system.d/connman.service
Normal file
14
packages/network/connman/system.d/connman.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Connection service
|
||||||
|
Before=network.target
|
||||||
|
Wants=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=net.connman
|
||||||
|
Restart=on-failure
|
||||||
|
ExecStart=/usr/sbin/connmand -n
|
||||||
|
StandardOutput=null
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user