]> Zhao Yanbai Git Server - minix.git/commitdiff
MAKEDEV: make more device nodes
authorBen Gras <ben@minix3.org>
Wed, 24 Aug 2005 07:26:48 +0000 (07:26 +0000)
committerBen Gras <ben@minix3.org>
Wed, 24 Aug 2005 07:26:48 +0000 (07:26 +0000)
setup:
- fix for root progress bar
- fix for network config and mount/umount order

commands/scripts/MAKEDEV.sh
commands/scripts/setup.sh

index 6f4f00321999596e49362befdc4c399ba1f21939..552e98426fce1592a0a02cb34036bf65800701b8 100755 (executable)
@@ -12,8 +12,10 @@ case $#:$1 in
     set -$- mem fd0 fd1 fd0p0 fd1p0 \
        c0d0 c0d0p0 c0d0p0s0 c0d1 c0d1p0 c0d1p0s0 \
        c0d2 c0d2p0 c0d2p0s0 c0d3 c0d3p0 c0d3p0s0 \
-       c0d7 c0d7p0 c0d7p0s0 \
-       tty ttyc1 ttyc2 ttyc3 tty00 tty01 ttyp0 ttyp1 ttyp2 ttyp3 eth klog random cmos
+       c0d4 c0d4p0 c0d4p0s0 c0d5 c0d5p0 c0d5p0s0 \
+       c0d6 c0d6p0 c0d6p0s0 c0d7 c0d7p0 c0d7p0s0 \
+       tty ttyc1 ttyc2 ttyc3 tty00 tty01 ttyp0 ttyp1 ttyp2 ttyp3 \
+       eth klog random cmos
     ;;
 0:|1:-\?)
     cat >&2 <<EOF
index 43c6f88d642adcab32e905f85257deacec444009..b818b6ae61cd632f312291b4b3ffa5ce353db9ee 100755 (executable)
@@ -9,6 +9,7 @@
 #                                              
 
 LOCALRC=/usr/etc/rc.local
+MYLOCALRC=/mnt/etc/rc.local
 
 PATH=/bin:/usr/bin
 export PATH
@@ -389,12 +390,24 @@ mount /dev/$usr /mnt >/dev/null || exit           # Mount the intended /usr.
 files="`find /usr | wc -l`"
 cpdir -v /usr /mnt | progressbar "$files" || exit      # Copy the usr floppy.
 
+
+                                       # Set inet.conf to correct driver
+if [ -n "$driver" ]
+then   echo "$driverargs" >$MYLOCALRC
+       disable=""
+else   disable="disable=inet;"
+fi
+
 umount /dev/$usr >/dev/null || exit            # Unmount the intended /usr.
 mount /dev/$root /mnt >/dev/null || exit
+
 # Running from the installation CD.
 files="`find / -xdev | wc -l`"
-cpdir -vx / /mnt || progressbar "$files" || exit       
-chmod 555 /mnt/usr
+cpdir -vx / /mnt | progressbar "$files" || exit        
+
+if [ -n "$driver" ]
+then   echo "eth0 $driver 0 { default; };" >/mnt/etc/inet.conf
+fi
 
 # CD remnants that aren't for the installed system
 rm /mnt/etc/issue /mnt/CD 2>/dev/null
@@ -409,14 +422,6 @@ usr=/dev/$usr"
                                        # National keyboard map.
 test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap
 
-                                       # Set inet.conf to correct driver
-if [ -n "$driver" ]
-then   echo "eth0 $driver 0 { default; };" >/mnt/etc/inet.conf
-       echo "$driverargs" >$LOCALRC
-       disable=""
-else   disable="disable=inet;"
-fi
-
 umount /dev/$root >/dev/null || exit   # Unmount the new root.
 mount /dev/$usr /mnt >/dev/null || exit