summaryrefslogtreecommitdiffstats
path: root/usr.bin/keyinfo/keyinfo.sh
blob: 5879442db18824e45a28374cd8248391a68e0732 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# search /etc/skeykeys for the skey string for this user OR user specified
# in 1st parameter

PATH=/bin:/usr/bin

test -f /etc/skeykeys && {
	WHO=${1-`id | sed 's/^[^(]*(\([^)]*\).*/\1/'`}
	awk '/^'${WHO}'[ 	]/ { print $2-1, $3 }' /etc/skeykeys
}
OpenPOWER on IntegriCloud