shithub: riscv

ref: 46cf9d4eb02a3a7c2516be3053994d4fb69eb949
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