|
|
@@ -11,6 +11,12 @@ then
|
|
|
exit 0
|
|
|
fi
|
|
|
|
|
|
+cat <<EOF
|
|
|
+###############################################
|
|
|
+# FIRST BOOT INITIALIZATION SCRIPT #
|
|
|
+###############################################
|
|
|
+EOF
|
|
|
+
|
|
|
if [[ $EUID -ne 0 ]]; then
|
|
|
echo "This script cannot work if not super-user. Please run as root" 1>&2
|
|
|
exit 1
|
|
|
@@ -24,6 +30,14 @@ do
|
|
|
status=$?
|
|
|
if [ 0 -ne "$status" ] ; then
|
|
|
echo "#ERROR# : script $f did not finish with success status !"
|
|
|
+cat <<EOF
|
|
|
+###############################################
|
|
|
+###############################################
|
|
|
+# FIRST BOOT INITIALIZATION : ERROR #
|
|
|
+# Please reboot your system #
|
|
|
+###############################################
|
|
|
+###############################################
|
|
|
+EOF
|
|
|
exit $status
|
|
|
fi
|
|
|
fi
|
|
|
@@ -31,5 +45,10 @@ done
|
|
|
|
|
|
rm $FIRST_BOOT_BASE_DIR/.mustrun
|
|
|
systemctl disable first-boot-init.service
|
|
|
+cat <<EOF
|
|
|
+###############################################
|
|
|
+# FIRST BOOT INITIALIZATION : success #
|
|
|
+###############################################
|
|
|
+EOF
|
|
|
|
|
|
exit 0
|