shithub: rc

ref: f3afdf563f784c0a5703496f48c1a72dff4617f4
dir: /df/

View raw version
#!/bin/rc
# df - print disk usage on hjfs/cwfs
# usage: df

if (test -f /srv/hjfs.cmd) {
	echo df >> /srv/hjfs.cmd
}
if not {
	echo statw >> /srv/cwfs.cmd
	dd -if /srv/cwfs.cmd -bs 1024 -count 21 -quiet 1 |
	grep wmax | sed 's/.*\+//'
}