mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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_group system 430
|
||||
|
||||
enable_service loopback.service
|
||||
enable_service connman.service
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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