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:
Stephan Raue 2013-08-16 13:19:18 +02:00
parent 181be1ff66
commit 97cc8cbd7b
3 changed files with 29 additions and 0 deletions

View File

@ -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

View 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

View 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