[systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl
Kay Sievers
kay at vrfy.org
Mon Jul 7 17:55:29 PDT 2014
On Tue, Jul 8, 2014 at 2:38 AM, Jóhann B. Guðmundsson
<johannbg at gmail.com> wrote:
> ---
> src/hostname/hostnamectl.c | 20 +++++++++++++++++---
> 1 file changed, 17 insertions(+), 3 deletions(-)
>
> diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
> index 267cd74..e164086 100644
> --- a/src/hostname/hostnamectl.c
> +++ b/src/hostname/hostnamectl.c
> @@ -67,6 +67,7 @@ typedef struct StatusInfo {
> char *pretty_hostname;
> char *icon_name;
> char *chassis;
> + char *environment;
> char *kernel_name;
> char *kernel_release;
> char *os_pretty_name;
> @@ -92,9 +93,11 @@ static void print_status_info(StatusInfo *i) {
> printf("Transient hostname: %s\n", i->hostname);
>
> printf(" Icon name: %s\n"
> - " Chassis: %s\n",
> + " Chassis: %s\n"
> + " Environment: %s\n",
Shouldn't we possibly we find a word for "environment" which explains
itself a bit better? Environment we usually call the numerous
variables of a process or service.
Kay
More information about the systemd-devel
mailing list