#!/bin/bash # udev # # Douglas Thrift # # $Id$ devices=(`echo /lib/udev/devices/{null,zero,console,urandom}`) modes=(0666 0666 0600 0666) majors=(1 1 5 1) minors=(3 5 1 9) for ((index = 0; index != ${#devices[*]}; ++index)); do if [[ ! -c ${devices[$index]} ]]; then mknod -m ${modes[$index]} ${devices[$index]} c ${majors[$index]} ${minors[$index]} fi done chgrp tty /lib/udev/devices/console