chiark / gitweb /
hostnamectl: show only specific hostname when requested
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Aug 2013 22:55:11 +0000 (18:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Aug 2013 23:06:54 +0000 (19:06 -0400)
commit960787ae27af395c28fb1ce9de5a575ebfb27a4d
tree318903d52bf57b1b86337cfd7b9126cf41d7e5f3
parent85424725d1870e2c218e3e2d53971f7e5dc3f0ae
hostnamectl: show only specific hostname when requested

Existing --pretty, --transient, --static options, used previously
for 'set-hostname' verb, are reused for the 'status' verb. If one
of them is given, only the specified hostname is printed. This
way there's no need to employ awk to get the hostname in a script.
man/hostnamectl.xml
src/hostname/hostnamectl.c
src/test/test-libudev.c