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

This commit is contained in:
cinap_lenrek 2017-01-15 18:25:54 +01:00
parent e9bf14eceb
commit ca47fef006
2 changed files with 8 additions and 0 deletions

View file

@ -52,6 +52,7 @@ fn client {
cmd=()
host='$cpu'
if(~ $#cpu 1) host=$cpu
exportfs=/bin/exportfs
connect=/bin/rconnect

View file

@ -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