Files
adrian15 9ee25ce61c Added initial useful explanations on options documentation (1)
* bootinfoscript
* chat
* fsck
* gpt-check-bios-grub
* gpt-create-hybrid-mbr
* gpt-recompute-hybrid-mbr-chs
* grub-install
* grubeasy
2020-03-16 00:34:01 +01:00

57 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Rescapp Boot Info Script run script
# Copyright (C) 2012,2013,2014,2015,2016,2017,2018,2019,2020 Adrian Gibanel Lopez
#
# Rescapp is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rescapp is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rescapp. If not, see <http://www.gnu.org/licenses/>.
source ${RESCAPP_LIB_FILE}
set +x
set +v
# Exceptionally we remove verbose
# Run Boot Info script
function rtux_Boot_Info_Script () {
if ${BOOT_INFO_SCRIPT_BINARY} --stdout; then
return 0; # Ok
else
return 1; # Error
fi
} # rtux_Boot_Info_Script ()
# TODO: Program check runtime (Maybe to be stolen from bootinfoscript)
# MAIN PROGRAM
BOOT_INFO_SCRIPT_BINARY="bootinfoscript"
BOOT_INFO_SCRIPT_OK_STR="Boot Info Script was run OK! :)"
BOOT_INFO_SCRIPT_KO_STR="Boot Info Script had a problem. Something went wrong! :("
BOOT_INFO_SCRIPT_EXPLANATION="Check the Support options in order to see how you can display or share on the forums, the Boot Info Script log."
BOOT_INFO_SCRIPT_STR="Generating Boot Info File."
if rtux_Run_Show_Progress "${BOOT_INFO_SCRIPT_STR}" rtux_Boot_Info_Script ; then
rtux_Message_Success ${BOOT_INFO_SCRIPT_OK_STR}
rtux_Message_Success ${BOOT_INFO_SCRIPT_EXPLANATION}
else
rtux_Message_Failure ${BOOT_INFO_SCRIPT_KO_STR}
fi