shithub: riscv

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