shithub: riscv

ref: c59eb6d117c6dc99bc6e4330d3a9a3453888dee7
dir: /sys/src/cmd/auth/enable/

View raw version
#!/bin/rc

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

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