fsck (298514) | fsck (299349) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/fsck 298514 2016-04-23 16:10:54Z lme $ | 3# $FreeBSD: head/etc/rc.d/fsck 299349 2016-05-10 08:44:44Z trasz $ |
4# 5 6# PROVIDE: fsck 7# REQUIRE: swap 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 14 unchanged lines hidden (view full) --- 26 27 check_startmsgs && echo "Starting file system checks:" 28 if checkyesno background_fsck; then 29 fsck -F -p 30 else 31 fsck -p 32 fi 33 | 4# 5 6# PROVIDE: fsck 7# REQUIRE: swap 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 --- 14 unchanged lines hidden (view full) --- 26 27 check_startmsgs && echo "Starting file system checks:" 28 if checkyesno background_fsck; then 29 fsck -F -p 30 else 31 fsck -p 32 fi 33 |
34 case $? in | 34 err=$? 35 if [ ${err} -eq 3 ]; then 36 echo "Warning! Some of the devices might not be" \ 37 "available; retrying" 38 root_hold_wait 39 check_startmsgs && echo "Restarting file system checks:" 40 if checkyesno background_fsck; then 41 fsck -F -p 42 else 43 fsck -p 44 fi 45 err=$? 46 fi 47 48 case ${err} in |
35 0) 36 ;; 37 2) 38 stop_boot 39 ;; 40 4) 41 echo "Rebooting..." 42 reboot --- 20 unchanged lines hidden (view full) --- 63 12) 64 echo "Boot interrupted." 65 stop_boot 66 ;; 67 130) 68 stop_boot 69 ;; 70 *) | 49 0) 50 ;; 51 2) 52 stop_boot 53 ;; 54 4) 55 echo "Rebooting..." 56 reboot --- 20 unchanged lines hidden (view full) --- 77 12) 78 echo "Boot interrupted." 79 stop_boot 80 ;; 81 130) 82 stop_boot 83 ;; 84 *) |
71 echo "Unknown error; help!" | 85 echo "Unknown error ${err}; help!" |
72 stop_boot 73 ;; 74 esac 75 fi 76} 77 78load_rc_config $name 79run_rc_command "$1" | 86 stop_boot 87 ;; 88 esac 89 fi 90} 91 92load_rc_config $name 93run_rc_command "$1" |