ref: 10409a2433b3b86f41b9fc5ee3acbd009d8c0f20
parent: fb3f8c2b86cdf0a8e8ce551b788ee8c3dbf74993
author: glenda <glenda@9front.local>
date: Sun Nov 22 03:39:04 EST 2020
added df
--- /dev/null
+++ b/df
@@ -1,0 +1,24 @@
+#!/bin/rc
+# df: print file system disk usage
+# usage: df [ server ]
+# This is the work of mischief (mischief on freenode) not Fulton Browne (the owner of this repo)
+rfork e
+
+hj=/srv/hjfs.cmd
+cw=/srv/cwfs.cmd
+owner=glenda
+server=$1
+
+if(~ $#server 1)
+ exec rcpu -h $server -u $owner -c /mnt/term/bin/df
+
+if(! ~ $user $owner)
+ exec rcpu -h $sysname -u $owner -c /mnt/term/bin/df
+
+if(test -w $hj)
+ echo df >>$hj &&
+ cat /dev/kmesg |
+ tail -2
+if(test -w $cw)
+ echo statw >>$cw &&
+ read -n 21 $cw
--- a/install-go.rc
+++ b/install-go.rc
@@ -1,7 +1,9 @@
#! /bin/rc
cd /tmp
hget http://www.9legacy.org/download/go/go1.14.1-plan9-amd64-bootstrap.tbz | bunzip2 -c | tar x
-hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar
+hget https://golang.org/dl/go1.15.2.src.tar.gz | gunzip -c | tar x
GOROOT_BOOTSTRAP=/tmp/go-plan9-amd64-bootstrap
+GOROOT=/sys/lib/go/amd64-1.15.2
+
make.rc
cp /sys/lib/go/amd64-1.15.2/bin/* /$objtype/bin