connman: merge loopback.service into connman.service

This commit is contained in:
Stefan Saraev 2014-08-13 22:12:48 +03:00 committed by Stephan Raue
parent 5e83764cb0
commit 21f2a282af
3 changed files with 1 additions and 12 deletions

View File

@ -115,6 +115,5 @@ post_install() {
add_user system x 430 430 "service" "/var/run/connman" "/bin/sh"
add_group system 430
enable_service loopback.service
enable_service connman.service
}

View File

@ -12,6 +12,7 @@ BusName=net.connman
Restart=on-failure
EnvironmentFile=-/run/openelec/debug/connman.conf
ExecStartPre=-/bin/sh -c "cat /storage/.cache/hostname > /proc/sys/kernel/hostname &>/dev/null"
ExecStartPre=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
# send SIGKILL on stop to keep ip configuration
KillSignal=SIGKILL

View File

@ -1,11 +0,0 @@
[Unit]
Description=Setup Loopback interface
DefaultDependencies=no
[Service]
Type=oneshot
ExecStart=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target