mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
connman: merge hostname.service into connman.service
This commit is contained in:
parent
c95bc93f49
commit
281c2366bb
@ -115,7 +115,6 @@ post_install() {
|
||||
add_user system x 430 430 "service" "/var/run/connman" "/bin/sh"
|
||||
add_group system 430
|
||||
|
||||
enable_service hostname.service
|
||||
enable_service loopback.service
|
||||
enable_service connman.service
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ Type=dbus
|
||||
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"
|
||||
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,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=Setup Hostname
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
|
||||
ConditionPathExists=/storage/.cache/hostname
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'cat /storage/.cache/hostname > /proc/sys/kernel/hostname'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
Loading…
x
Reference in New Issue
Block a user