shithub: riscv

ref: e2a8d3493ab0fdc345b6513a53f30f2b4f36ed97
dir: /sys/src/cmd/auth/disable/

View raw version
#!/bin/rc

if(! ~ $#* 1){
	echo 'usage: auth/disable user' >[1=2]
	exit usage
}

if(test -e /mnt/keys/$1)
	echo -n disabled > /mnt/keys/$1/status
if(test -e /mnt/netkeys/$1)
	echo -n disabled > /mnt/netkeys/$1/status