/usr/bin/vtdeviceinfo is in libvpb0 4.2.54-1.
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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh
#
# Simple script to scan the /proc/vt tree for information
# about Voicetronix devices that are currently enabled.
#
# Ron <ron@voicetronix.com.au>, 5-Aug-2006
for b in /proc/vt/board*; do
[ -d $b ] || continue
echo -n "${b##*/}: $(cat $b/name) $(cat $b/id), max ports $(cat $b/maxports)"
if [ -e $b/firmware ]; then
echo ", firmware $(cat $b/firmware)"
else
echo
fi
for m in $b/module*; do
[ -d $m ] || continue
echo " ${m##*/}:"
for f in $m/*; do
printf " %-8s = $(cat $f)\n" "${f##*/}"
done
done
for p in $b/port*; do
[ -d $p ] || continue
echo " ${p##*/}:"
for f in $p/*; do
printf " %-8s = $(cat $f)\n" "${f##*/}"
done
done
done
|