shithub: riscv

ref: ec8d7cdf024949d73c5f887f23f060cd33c1df28
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