mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 06:57:50 +00:00
connman: port hostname setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
1c9be56121
commit
682041952d
@ -116,6 +116,7 @@ post_install() {
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service hostname.service
|
||||
enable_service connman.service
|
||||
if [ "$PPTP_SUPPORT" = yes -o "$OPENVPN_SUPPORT" = yes ]; then
|
||||
enable_service connman-vpn.service
|
||||
|
13
packages/network/connman/system.d/hostname.service
Normal file
13
packages/network/connman/system.d/hostname.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Setup Hostname
|
||||
DefaultDependencies=no
|
||||
ConditionPathExists=/storage/.cache/hostname
|
||||
After=local-fs.target
|
||||
|
||||
[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