summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-01-15 18:25:54 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-01-15 18:25:54 +0100
commitca47fef0061954cda2355cc10dba774d6567051e (patch)
treeef97c601c3e81846e08f8e941e7c5c3d51160843 /rc
parente9bf14ecebd1f7b91968b10cec05620dd338ac0f (diff)
downloadplan9front-ca47fef0061954cda2355cc10dba774d6567051e.tar.xz
rcpu: use $cpu environment variable for host when not specified
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/rcpu1
1 files changed, 1 insertions, 0 deletions
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