1 # arg 1: the new package version
2 # arg 2: the old package version
5 if [ "$(vercmp $2 100)" -lt 0 ]; then
8 echo "udev >=098 rules syntax has changed, please update your own rules."
9 echo "udev >=099 Added persistent network and CD/DVD Symlink generator rules."
10 echo "Please read the instructions carefully before reboot."
11 echo "They are located in /etc/udev/readme-udev-arch.txt"
17 # If a ramfs is mounted, we still need to make sure that /dev/{console,null,zero} exist
18 # The Archlinux installer bind-mounts /dev to /mnt/dev, thus making the real /dev invisible
20 [ "$(stat -c %D /)" != "$(stat -c %D /dev)" ] && ROOTDIR=$(mktemp -d /tmp/udevinstall.XXXXXX)
21 [ -n "${ROOTDIR}" ] && mount --bind / ${ROOTDIR}
22 [ -c ${ROOTDIR}/dev/console ] || mknod -m600 ${ROOTDIR}/dev/console c 5 1
23 [ -c ${ROOTDIR}/dev/null ] || mknod -m644 ${ROOTDIR}/dev/null c 1 3
24 [ -c ${ROOTDIR}/dev/zero ] || mknod -m644 ${ROOTDIR}/dev/zero c 1 5
25 if [ -n "${ROOTDIR}" ]; then