rename timer

This commit is contained in:
cronekorkn 2022-09-24 13:37:13 +02:00
parent 6c0193520d
commit ac919278aa
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -59,8 +59,8 @@ def wake_command(metadata):
@metadata_reactor.provides( @metadata_reactor.provides(
'systemd/units/enable-wol.service', 'systemd/units/wakeonline-setup.service',
'systemd/services/enable-wol.service', 'systemd/services/wakeonline-setup.service',
) )
def systemd(metadata): def systemd(metadata):
interface = metadata.get(f"network/{metadata.get('wol-sleeper/network')}/interface") interface = metadata.get(f"network/{metadata.get('wol-sleeper/network')}/interface")
@ -68,7 +68,7 @@ def systemd(metadata):
return { return {
'systemd': { 'systemd': {
'units': { 'units': {
'enable-wol.service': { 'wakeonline-setup.service': {
'Unit': { 'Unit': {
'After': 'network.target', 'After': 'network.target',
}, },
@ -80,7 +80,7 @@ def systemd(metadata):
}, },
}, },
'services': { 'services': {
'enable-wol.service': {}, 'wakeonline-setup.service': {},
}, },
}, },
} }