#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
devicename () { # translate device names to something safe
- echo "$*" | sed -e 's/[^A-Za-z0-9_]/_/g'
+ # A-Z is not full alphabet in all locales (e.g. in et_EE)
+ echo "$*" | LC_ALL=C sed -e 's/[^A-Za-z0-9_]/_/g'
}
makedev () { # usage: makedev name [bcu] major minor owner group mode
st) echo st0 ;;
xd) echo xda xdb ;;
ad) echo ada adb ;;
- fd) echo fd0 fd1 ;;
lp) echo lp ;;
mt) echo ftape ;;
qft) echo ftape ;;
for arg in `cvt $*`
do
+ # this is to make the case patterns work as expected in all locales
+ LC_ALL=C
case $arg in
generic)
# pick the right generic-<arch> using dpkg's knowledge
;;
md)
major=`Major md 9` || continue
- for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+ for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 \
+ 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
do
makedev md$part b $major $part $disk
done
+makedev (2.3.1-82) unstable; urgency=low
+
+ * create 32 md* devices instead of 16, closes: #367406
+ * Juhan Ernits patch to unify sed behavior across locales, closes: #363017
+ * add LSBInitScripts support to init.d script, closes: #376992
+ * patch from Ubuntu to ensure base tty* set exists in init.d, not just tty0
+ * remove the alias 'fd' as a shorthand for 'fd0 fd1' to allow the real fd
+ target to be reached, closes: #357143
+
+ -- Bdale Garbee <bdale@gag.com> Thu, 6 Jul 2006 09:06:06 -0600
+
makedev (2.3.1-81) unstable; urgency=low
* add check for /dev/.udev in init.d at Md's request
Section: admin
Priority: required
Maintainer: Bdale Garbee <bdale@gag.com>
-Build-Depends-Indep: debhelper
-Standards-Version: 3.6.2.1
+Build-Depends: debhelper
+Standards-Version: 3.7.2
Package: makedev
Architecture: all
#! /bin/sh
+### BEGIN INIT INFO
+# Provies: makedev
+# Required-Start: $local_fs
+# Required-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Creates device files in /dev
+### END INIT INFO
+
N=/etc/init.d/makedev
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
/bin/chmod g-r,o= /dev/tty[0-9]*
-test -e /dev/tty0 || /sbin/MAKEDEV tty0
+# ensure base tty set exists, since debootstrap no longer does
+for i in tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9; do
+ test -e /dev/$i || /sbin/MAKEDEV $i
+done
+
test -e /dev/random || /sbin/MAKEDEV random
test -e /dev/urandom || /sbin/MAKEDEV urandom
test -e /dev/audio || /sbin/MAKEDEV audio