3 Commits
Author SHA1 Message Date
Tobias KlauserandMichael Stapelberg b6086c6f88 reboot: use KexecFileLoad and KEXEC_* from golang.org/x/sys/unix (#42)
The KexecFileLoad syscall wrapper and the KEXEC_* constants were added
to golang.org/x/sys/unix. Use them instead of open-coding them.
2018-10-05 18:05:53 +02:00
Tobias KlauserandMichael Stapelberg 50b9390a43 dhcp: simplify Utsname conversion (#36)
Utsname from golang.org/x/sys/unix contains byte array members instead of
int8/uint8. This allows to simplify the NULL byte indexing in
addHostname.
2018-03-29 12:09:08 +02:00
Tobias KlauserandMichael Stapelberg ffa8ce0e42 use WDIOC_KEEPALIVE from golang.org/x/sys/unix (#35)
...now that it was added there.
2017-10-28 12:55:27 +02:00