[BACK]Return to rc CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/rc between version 1.428 and 1.429

version 1.428, 2014/07/12 10:14:03 version 1.429, 2014/07/13 12:12:30
Line 205 
Line 205 
         fi          fi
 }  }
   
   do_fsck()
   {
           local _flags=$1
   
           fsck -p $_flags
           case $? in
           0)
                   ;;
           2)
                   exit 1
                   ;;
           4)
                   echo "Rebooting..."
                   reboot
                   echo "Reboot failed; help!"
                   exit 1
                   ;;
           8)
                   echo "Automatic file system check failed; help!"
                   exit 1
                   ;;
           12)
                   echo "Boot interrupted."
                   exit 1
                   ;;
           130)
                   # interrupt before catcher installed
                   exit 1
                   ;;
           *)
                   echo "Unknown error; help!"
                   exit 1
                   ;;
           esac
   }
   
 # End subroutines  # End subroutines
   
 stty status '^T'  stty status '^T'
Line 272 
Line 308 
         echo "Fast boot: skipping disk checks."          echo "Fast boot: skipping disk checks."
 elif [ X"$1" = X"autoboot" ]; then  elif [ X"$1" = X"autoboot" ]; then
         echo "Automatic boot in progress: starting file system checks."          echo "Automatic boot in progress: starting file system checks."
         fsck -p          do_fsck
         case $? in  
         0)  
                 ;;  
         2)  
                 exit 1  
                 ;;  
         4)  
                 echo "Rebooting..."  
                 reboot  
                 echo "Reboot failed; help!"  
                 exit 1  
                 ;;  
         8)  
                 echo "Automatic file system check failed; help!"  
                 exit 1  
                 ;;  
         12)  
                 echo "Boot interrupted."  
                 exit 1  
                 ;;  
         130)  
                 # interrupt before catcher installed  
                 exit 1  
                 ;;  
         *)  
                 echo "Unknown error; help!"  
                 exit 1  
                 ;;  
         esac  
 fi  fi
   
 trap "echo 'Boot interrupted.'; exit 1" 3  trap "echo 'Boot interrupted.'; exit 1" 3
Line 394 
Line 401 
   
 echo -n 'starting early daemons:'  echo -n 'starting early daemons:'
 start_daemon syslogd ldattach pflogd named nsd unbound ntpd  start_daemon syslogd ldattach pflogd named nsd unbound ntpd
 start_daemon isakmpd iked sasyncd ldapd npppd  start_daemon iscsid isakmpd iked sasyncd ldapd npppd
 echo '.'  echo '.'
   
 if [ X"${ipsec}" != X"NO" ]; then  if [ X"${ipsec}" != X"NO" ]; then
Line 413 
Line 420 
   
 mount -a  mount -a
 swapctl -A -t noblk  swapctl -A -t noblk
   
   # check and mount networked filesystems
   do_fsck -N
   mount -a -N
   
 # /var/crash should be a directory or a symbolic link  # /var/crash should be a directory or a symbolic link
 # to the crash directory if core dumps are to be saved.  # to the crash directory if core dumps are to be saved.

Legend:
Removed from v.1.428  
changed lines
  Added in v.1.429