Changeset 6f69b5c for bootscripts/contrib/lsb-v3/init.d/checkfs
- Timestamp:
- 03/25/2009 06:35:58 AM (16 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- c990c5c
- Parents:
- 9da9f24f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/contrib/lsb-v3/init.d/checkfs
r9da9f24f r6f69b5c 31 31 then 32 32 log_failure_msg "Mounting root file system in read-only mode" 33 echo "${FAILURE}FAILURE:\n"34 echo - n "${FIALURE}Cannot check root filesystem because it "35 echo "${FAILURE}could not be mounted"36 echo "${FAILURE}in read-only mode.\n\n"37 echo - n "${FAILURE}After you press Enter, this system will be "38 echo "${FAILURE}halted and powered off.\n"39 echo "${INFO}Press enter to continue...${NORMAL}"33 echo -e "${FAILURE}FAILURE:\n" 34 echo -e -n "${FIALURE}Cannot check root filesystem because it " 35 echo -e "${FAILURE}could not be mounted" 36 echo -e "${FAILURE}in read-only mode.\n\n" 37 echo -e -n "${FAILURE}After you press Enter, this system will be " 38 echo -e "${FAILURE}halted and powered off.\n" 39 echo -e "${INFO}Press enter to continue...${NORMAL}" 40 40 read ENTER 41 41 /etc/rc.d/init.d/halt stop … … 62 62 then 63 63 log_warning_msg "Checking file systems..." 64 echo "${WARNING}WARNING:\n"65 echo "${WARNING}File system errors were found and have been"66 echo "${WARNING}corrected. You may want to double-check that"67 echo "${WARNING}everything was fixed properly.${NORMAL}"64 echo -e "${WARNING}WARNING:\n" 65 echo -e "${WARNING}File system errors were found and have been" 66 echo -e "${WARNING}corrected. You may want to double-check that" 67 echo -e "${WARNING}everything was fixed properly.${NORMAL}" 68 68 elif [ "${error_value}" = 2 -o "${error_value}" = 3 ]; then 69 69 log_warning_msg "Checking file systems..." 70 echo "${WARNING}WARNING:\n"71 echo "${WARNING}File system errors were found and have been been"72 echo "${WARNING}corrected, but the nature of the errors require"73 echo "${WARNING}this system to be rebooted.\n"74 echo "After you press enter, this system will be rebooted.\n"75 echo "${INFO}Press Enter to continue...${NORMAL}"70 echo -e "${WARNING}WARNING:\n" 71 echo -e "${WARNING}File system errors were found and have been been" 72 echo -e "${WARNING}corrected, but the nature of the errors require" 73 echo -e "${WARNING}this system to be rebooted.\n" 74 echo -e "After you press enter, this system will be rebooted.\n" 75 echo -e "${INFO}Press Enter to continue...${NORMAL}" 76 76 read ENTER 77 77 reboot -f 78 78 elif [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then 79 79 log_failure_msg "Checking file systems..." 80 echo "${FAILURE}FAILURE:\n"81 echo "${FAILURE}File system errors were encountered that could"82 echo "${FAILURE}not be fixed automatically. This system cannot"83 echo "${FAILURE}continue to boot and will therefore be halted"84 echo "${FAILURE}until those errors are fixed manually by a"85 echo "${FAILURE}System Administrator.\n"86 echo "${FAILURE}After you press Enter, this system will be"87 echo "${FAILURE}halted and powered off.\n"88 echo "${INFO}Press Enter to continue...${NORMAL}"80 echo -e "${FAILURE}FAILURE:\n" 81 echo -e "${FAILURE}File system errors were encountered that could" 82 echo -e "${FAILURE}not be fixed automatically. This system cannot" 83 echo -e "${FAILURE}continue to boot and will therefore be halted" 84 echo -e "${FAILURE}until those errors are fixed manually by a" 85 echo -e "${FAILURE}System Administrator.\n" 86 echo -e "${FAILURE}After you press Enter, this system will be" 87 echo -e "${FAILURE}halted and powered off.\n" 88 echo -e "${INFO}Press Enter to continue...${NORMAL}" 89 89 read ENTER 90 90 /etc/rc.d/init.d/halt stop 91 91 elif [ "${error_value}" -ge 16 ]; then 92 92 log_failure_msg "Checking file systems..." 93 echo "${FAILURE}FAILURE:\n"94 echo "${FAILURE}Unexpected Failure running fsck. Exited with error"95 echo "${FAILURE}code: ${error_value}.${NORMAL}"93 echo -e "${FAILURE}FAILURE:\n" 94 echo -e "${FAILURE}Unexpected Failure running fsck. Exited with error" 95 echo -e "${FAILURE}code: ${error_value}.${NORMAL}" 96 96 exit ${error_value} 97 97 fi
Note:
See TracChangeset
for help on using the changeset viewer.