summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/enable
blob: 3c44b7eb53a63a9f50b7c88eca5f068e95e3b526 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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