coda=" root root 0600"
ipsec=" root root 0200"
readable=" root root 0444"
+ lirc=" root video 0640"
MAXVT=63
fi
fi
}
+makefifo () { # usage: makefifo name owner group mode
+ if [ "$opt_v" ]
+ then if [ "$opt_d" ]
+ then echo "delete $1"
+ else echo "create $1 $2:$3 $4"
+ fi
+ fi
+ # missing parameters are a bug - bail - should we do an exit 1 here?
+ case :$1:$2:$3:$4: in
+ *::*) echo "Warning: MAKEFIFO $@ is missing parameter(s)." >&2;;
+ esac
+ if [ ! "$opt_n" ]
+ then
+ if [ "$opt_d" ]
+ then
+ rm -f $1
+ else
+ rm -f $1-
+ if mknod $1- p &&
+ chown $2:$3 $1- &&
+ chmod $4 $1- &&
+ mv $1- $1
+ then
+ : # it worked
+ else
+ # Didn't work, clean up any mess...
+ echo "makefifo $@: failed"
+ rm -f $1-
+ fi
+ fi
+ fi
+}
symlink () { # usage: symlink name target
if [ "$opt_v" ]
then if [ "$opt_d" ]
case $arg in
generic)
# pick the right generic-<arch> using dpkg's knowledge
- case `dpkg --print-installation-architecture` in
+ case `dpkg --print-architecture` in
alpha)
$0 $opts generic-alpha
;;
- arm|armeb)
+ arm|armeb|armel)
$0 $opts generic-arm
;;
hppa)
$0 $opts generic-hppa
;;
- i386)
+ i386|lpia)
$0 $opts generic-i386
;;
amd64)
symlink core $procfs/kcore
makedev full c 1 7 $public
makedev random c 1 8 $public
- makedev urandom c 1 9 $readable
+ makedev urandom c 1 9 $public
makedev tty c 5 0 $tty
$0 $opts ram
$0 $opts loop
;;
adb)
# pick the right arch device using dpkg's knowledge
- case `dpkg --print-installation-architecture` in
+ case `dpkg --print-architecture` in
powerpc)
# ADB bus devices (char)
makedev adb c 56 0 $mouse
irnet)
makedev irnet c 10 187 $system
;;
+ cbm)
+ makedev cbm c 10 177 $floppy
+ ;;
misc)
major=`Major mouse 10` || continue
makedev logibm c $major 0 $mouse
makedev systrace c 10 226 $private
;;
uinput)
+ mkdir -p input
makedev input/uinput c 10 223 $mouse
;;
js)
done
;;
pktcdvd)
- major=97
- for unit in 0 1 2 3
- do
- makedev pktcdvd$unit b $major $unit $cdrom
- done
+ echo "pktcdvd major number is now dynamic, taking no action"
+ # major=97
+ # for unit in 0 1 2 3
+ # do
+ # makedev pktcdvd$unit b $major $unit $cdrom
+ # done
;;
cfs0)
makedev cfs0 c 67 0 $coda
makedev pf$i b 47 $i $floppy
done
;;
+ lirc)
+ makedev lirc c 61 0 $lirc
+ for i in d m; do
+ makefifo lirc${i} $lirc
+ done
+ ;;
update)
devices=
if [ ! -f $procfs/devices ]