]> Zhao Yanbai Git Server - minix.git/commitdiff
Make /dev/rescue
authorBen Gras <ben@minix3.org>
Fri, 21 Oct 2005 10:00:03 +0000 (10:00 +0000)
committerBen Gras <ben@minix3.org>
Fri, 21 Oct 2005 10:00:03 +0000 (10:00 +0000)
commands/scripts/MAKEDEV.sh

index 9b2175feb0ea42dc7952516359b9038b4aaa25a7..268af836e2141494386c7c23c6237e15387f68bf 100755 (executable)
@@ -15,7 +15,7 @@ case $#:$1 in
        c0d4 c0d4p0 c0d4p0s0 c0d5 c0d5p0 c0d5p0s0 \
        c0d6 c0d6p0 c0d6p0s0 c0d7 c0d7p0 c0d7p0s0 \
        tty ttyc1 ttyc2 ttyc3 tty00 tty01 tty02 tty03 ttyp0 ttyp1 ttyp2 ttyp3 \
-       eth klog random cmos kbd psm
+       eth klog random cmos kbd psm rescue
     ;;
 0:|1:-\?)
     cat >&2 <<EOF
@@ -38,6 +38,7 @@ Where key is one of the following:
   klog                    # Make /dev/klog
   random                  # Make /dev/random, /dev/urandom
   cmos                    # Make /dev/cmos
+  rescue                  # Make /dev/rescue
   kbd                     # Make /dev/kbd*
   psm                     # Make /dev/psm*
   std                    # All standard devices
@@ -238,6 +239,11 @@ do
        $e mknod cmos c 17 0
        $e chmod 600 cmos
        ;;
+    rescue)
+       # rescue device
+       $e mknod rescue b 9 0
+       $e chmod 644 rescue
+       ;;
     klog)
        # logging device.
        $e mknod klog c 15 0