Refactored script

Add config.txt confirmation
Erase all check is moved to before passphrase
Add more comment
This commit is contained in:
Suikan 2021-06-29 06:14:43 +09:00
parent 28203ce0f4
commit 1ee412ee12
3 changed files with 67 additions and 53 deletions

View file

@ -8,10 +8,10 @@ if [ $sourced -eq 0 ] ; then
Execute as following :
source 3-post-install.sh
Installation terminates.
Installation terminated.
HEREDOC
exit
fi
exit # use "exit" instead of "return", if not "sourced" execusion
fi # "sourced" validation
## Mount the target file system
# /target is created by the Ubiquity installer
@ -49,6 +49,7 @@ update-initramfs -uk all
exit
HEREDOC
# Finishing message
cat <<HEREDOC
3-pro-install.sh : Done. Ready to reboot.