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