mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
connman: merge loopback.service into connman.service
This commit is contained in:
parent
5e83764cb0
commit
21f2a282af
@ -115,6 +115,5 @@ post_install() {
|
|||||||
add_user system x 430 430 "service" "/var/run/connman" "/bin/sh"
|
add_user system x 430 430 "service" "/var/run/connman" "/bin/sh"
|
||||||
add_group system 430
|
add_group system 430
|
||||||
|
|
||||||
enable_service loopback.service
|
|
||||||
enable_service connman.service
|
enable_service connman.service
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ BusName=net.connman
|
|||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
EnvironmentFile=-/run/openelec/debug/connman.conf
|
EnvironmentFile=-/run/openelec/debug/connman.conf
|
||||||
ExecStartPre=-/bin/sh -c "cat /storage/.cache/hostname > /proc/sys/kernel/hostname &>/dev/null"
|
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"
|
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
|
# send SIGKILL on stop to keep ip configuration
|
||||||
KillSignal=SIGKILL
|
KillSignal=SIGKILL
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user