2 # Patch to allow /dev to reside permanently in the file
5 --- old/devices 2005-05-28 21:51:39.012078699 -0700
6 +++ new/devices 2005-06-12 00:16:29.222686303 -0700
10 # exit without doing anything if udev is active
11 -if test -e /dev/.udevdb; then
12 +if test -e /dev/.udevdb -o -e /dev/.permanent; then
17 mknod /dev/ppp c 108 0
18 if test "$VERBOSE" != "no"; then echo "done"; fi
20 - if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
21 - mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
22 - if test $? -ne 0; then
23 - if test "$VERBOSE" != "no"; then echo "failed"; fi
24 + if test -e /dev/.noram
26 + # There should be no files, any files will damage the
27 + # makedevs script below.
28 + rm $(find /dev -type f -print)
31 - if test "$VERBOSE" != "no"; then echo "done"; fi
32 + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi
33 + mount -t ramfs ramfs /dev || mount -t tmpfs ramfs /dev
34 + if test $? -ne 0; then
35 + if test "$VERBOSE" != "no"; then echo "failed"; fi
37 + if test "$VERBOSE" != "no"; then echo "done"; fi
40 if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi
43 if test "$VERBOSE" != "no"; then echo "failed"; fi
45 if test "$VERBOSE" != "no"; then echo "done"; fi
46 + if test -e /dev/.noram