From ca47fef0061954cda2355cc10dba774d6567051e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 15 Jan 2017 18:25:54 +0100 Subject: [PATCH] rcpu: use $cpu environment variable for host when not specified --- rc/bin/rcpu | 1 + sys/man/1/rcpu | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/rc/bin/rcpu b/rc/bin/rcpu index 01e388ee6..8ea3fcfd6 100755 --- a/rc/bin/rcpu +++ b/rc/bin/rcpu @@ -52,6 +52,7 @@ fn client { cmd=() host='$cpu' +if(~ $#cpu 1) host=$cpu exportfs=/bin/exportfs connect=/bin/rconnect diff --git a/sys/man/1/rcpu b/sys/man/1/rcpu index c096c090b..edafa8cfc 100644 --- a/sys/man/1/rcpu +++ b/sys/man/1/rcpu @@ -105,6 +105,13 @@ set to to allow further customization of the environment (see .IR rc (1) for more information). +The cpu server can be specified with +.B -h +.IR host , +otherwise it defaults to the environment variable +.B $cpu +or is looked up from +.IR ndb (6). .PP .I Rimport mounts a remote directory