connman: merge hostname.service into connman.service

This commit is contained in:
Stefan Saraev 2014-08-13 22:11:39 +03:00 committed by Stephan Raue
parent 08c6eb1e7a
commit 5e83764cb0
3 changed files with 1 additions and 15 deletions

View File

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

View File

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

View File

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