summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init_functions14
1 files changed, 7 insertions, 7 deletions
diff --git a/init_functions b/init_functions
index 9611c27..4945136 100644
--- a/init_functions
+++ b/init_functions
@@ -111,17 +111,17 @@ fsck_root() {
}
if [ "$fsckret" -ne 255 ]; then
- if fsck_ret 0 || fsck_ret 1; then
+ if [ "$fsckret" = '0' ] || fsck_ret 1; then
echo "$fsckret" > /run/initramfs/root-fsck
elif fsck_ret 4; then
err "Bailing out. Run 'fsck $root' manually"
printf '%s\n' \
- "********** FILESYSTEM CHECK FAILED **********"
- "* *"
- "* Please run fsck manually. After leaving *"
- "* this maintenance shell, the system will *"
- " reboot automatically. *"
- "* *"
+ "********** FILESYSTEM CHECK FAILED **********" \
+ "* *" \
+ "* Please run fsck manually. After leaving *" \
+ "* this maintenance shell, the system will *" \
+ " reboot automatically. *" \
+ "* *" \
"*********************************************"
launch_interactive_shell
echo ":: Automatic reboot in progress"