]>
Commit | Line | Data |
---|---|---|
5892ceb5 | 1 | #! /bin/sh |
2 | # | |
3 | # test.tty - run udev(8) on each tty device in /sys/class/tty | |
5776bbd7 | 4 | |
5892ceb5 | 5 | SYSFSDIR=/sys # change this for a nonstand sysfs mount point |
6 | BIN=./udev # location of your udev binary | |
7 | export ACTION=add # 'add' or 'remove' | |
a2fd2ff3 | 8 | |
5892ceb5 | 9 | for i in ${SYSFSDIR}/class/tty/*; do |
10 | export DEVPATH="/"`echo $i | cut --delimiter='/' --fields=3-` | |
11 | $BIN tty | |
12 | done |