support for reading hostname from /etc/hostname

This commit is contained in:
Jack L. Frost 2015-01-08 11:13:47 +03:00
parent 31f80cc8da
commit 1c91d74984

1
rc.in
View File

@ -143,6 +143,7 @@ rc.shutdown() {
} }
rc.hostname() { rc.hostname() {
[[ -f '/etc/hostname' ]] && { hostname "$(</etc/hostname)"; }
[[ "$cfg_hostname" ]] && { hostname "$cfg_hostname"; } [[ "$cfg_hostname" ]] && { hostname "$cfg_hostname"; }
} }