#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
-# if udev is running, and we're in /dev, relocate ourselves
-if [ -d /.dev/ ] && [ "`pwd`" = /dev ] && [ -e /proc/mounts ] \
- && grep -qE '^[^ ]+ /\.dev' /proc/mounts; then
- cd /.dev/
+# try to do the right things if udev is running
+if [ "$WRITE_ON_UDEV" ]; then
+ :
+elif [ -d /dev/.static/dev/ ] && [ "`pwd`" = /dev ] && [ -e /proc/mounts ] \
+ && grep -qE '^[^ ]+ /dev/\.static/dev' /proc/mounts; then
+ cd /dev/.static/dev/
+elif [ -d /.dev/ ] && [ "`pwd`" = /dev ] && [ -e /proc/mounts ] \
+ && grep -qE '^[^ ]+ /\.dev' /proc/mounts; then
+ cd /.dev/
+elif [ -d .udevdb/ ] && [ "`pwd`" = /dev ]; then
+ echo ".udevdb presence implies active udev. Aborting MAKEDEV invocation."
+ # use exit 0, not 1, so postinst scripts don't fail on this
+ exit 0
fi
#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
major=`Major $arg 10` || continue
makedev $arg c $major 175 $video
;;
- hwrandom)
+ hwrng)
major=`Major $arg 10` || continue
makedev $arg c $major 183 $private
;;
systrace)
makedev systrace c 10 226 $private
;;
+ uinput)
+ makedev input/uinput c 10 223 $mouse
+ ;;
js)
major=`Major Joystick 13` || continue
for unit in 0 1 2 3
+++ /dev/null
-This version of makedev is not particularly happy on systems running devfs.
-All bugs regarding devfs interaction will be retained at severity 'wishlist'
-until we figure out what makedev's interaction with devfs should be...
+makedev (2.3.1-77) unstable; urgency=medium
+
+ * update udev handling on advice from Marco d'Itri. Handles more cases
+ and provides the ability to override the avoidance logic if environment
+ variable WRITE_ON_UDEV is set. Urgency medium to help a new udev upload
+ depending on this behavior get into sarge. closes: #264421
+ * change hwrandom to hwrng, closes: #295324
+ * patch from Gaudenz Steinlin to add input/uinput support, closes: #294361
+ * remove README.Debian, since the content is obsolete
+
+ -- Bdale Garbee <bdale@gag.com> Mon, 14 Mar 2005 16:53:32 -0700
+
makedev (2.3.1-76) unstable; urgency=low
* make ppc64 an alias for powerpc, closes: #282687