/usr/bin/ppsfind is in pps-tools 0.20120406+g0deb9c7e-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash
SYS="/sys/class/pps/"
if [ $# -lt 1 ] ; then
echo "usage: ppsfind <name>" >&2
exit 1
fi
for d in $(ls $SYS) ; do
if grep $1 $SYS/$d/name >& /dev/null || \
grep $1 $SYS/$d/path >& /dev/null ; then
echo "$d: name=$(cat $SYS/$d/name) path=$(cat $SYS/$d/path)"
fi
done
exit 0
|