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