[Main]
Type = oneshot
Description = "Set hostname"

[Execute]
StdOut = 66log:%%livedir%%/log/system-hostname

[Start]
Execute =
(
    if { 66-yeller -cdp system-hostname -1 /dev/console set hostname }
    if -nt {

        execl-envfile ${ConfFile}
        s6-hostname ${HOSTNAME}

    }
    66-yeller -fcdp system-hostname -1 /dev/console crashed!
)

[Environment]
ConfFile=!%%bootconf%%
