]>
git.ipfire.org Git - thirdparty/systemd.git/blob - test/test.tty
3 # test.tty - run udev(8) on each tty device in /sys/class/tty
7 echo "usage: $0 <action>"
8 echo "where <action> is \"add\" or \"remove\""
13 SYSFSDIR
=/sys
# change this for a nonstand sysfs mount point
14 BIN
=..
/udev
# location of your udev binary
15 export ACTION
=$1 # 'add' or 'remove'
17 for i
in ${SYSFSDIR}/class
/tty
/*; do
18 export DEVPATH
=${i#${SYSFSDIR}}