summaryrefslogtreecommitdiff
path: root/test.tty
blob: ec8b1d0404debd47822f795851ad1db339c03af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
#
# test.tty - run udev(8) on each tty device in /sys/class/tty

SYSFSDIR=/sys		# change this for a nonstand sysfs mount point
BIN=./udev		# location of your udev binary
export ACTION=add	# 'add' or 'remove'

for i in ${SYSFSDIR}/class/tty/*; do
	export DEVPATH="/"`echo $i | cut --delimiter='/' --fields=3-`
	$BIN tty
done