shithub: riscv

Download patch

ref: ca47fef0061954cda2355cc10dba774d6567051e
parent: e9bf14ecebd1f7b91968b10cec05620dd338ac0f
author: cinap_lenrek <[email protected]>
date: Sun Jan 15 13:25:54 EST 2017

rcpu: use $cpu environment variable for host when not specified

--- a/rc/bin/rcpu
+++ b/rc/bin/rcpu
@@ -52,6 +52,7 @@
 
 cmd=()
 host='$cpu'
+if(~ $#cpu 1) host=$cpu
 exportfs=/bin/exportfs
 connect=/bin/rconnect
 
--- a/sys/man/1/rcpu
+++ b/sys/man/1/rcpu
@@ -105,6 +105,13 @@
 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