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