#!/bin/bash # A script for Clover Theme Manager # Copyright (C) 2014-2019 Blackosx # # This program 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. # # This program 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. # # Extracts bootlog from ioreg and then parses it for theme info. # Html is then constructed and injected in to the main template. # v0.76.9 # --------------------------------------------------------------------------------------- SetHtmlBootlogSectionTemplates() { [[ DEBUG -eq 1 ]] && WriteLinesToLog [[ DEBUG -eq 1 ]] && WriteToLog "${debugIndent}SetHtmlBootlogSectionTemplates()" blcOpen=$(printf "
Boot Device Info<\/span><\/div>\r") blcLineDeviceInfoMbr=$(printf "
\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "
Type:<\/span>${blBootDeviceType} (${blBootDevicePartType})<\/span><\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "
Signature:<\/span>${blBootDevicePartSignature}<\/span><\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "
Partition #:<\/span>${blBootDevicePartition}<\/span><\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "
Start:<\/span>${blBootDevicePartStartDec}<\/span><\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "
Size:<\/span>${blBootDevicePartSizeDec}<\/span><\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf " <\/div>\r") blcLineDeviceInfoMbr="$blcLineDeviceInfoMbr"$(printf "\r") blcLineDeviceInfoGpt=$(printf "
\r") blcLineDeviceInfoGpt="$blcLineDeviceInfoGpt"$(printf "
Type:<\/span>${blBootDeviceType} (${blBootDevicePartType})<\/span><\/div>\r") blcLineDeviceInfoGpt="$blcLineDeviceInfoGpt"$(printf "
Signature:<\/span>${blBootDevicePartSignature}<\/span><\/div>\r") blcLineDeviceInfoGpt="$blcLineDeviceInfoGpt"$(printf " <\/div>\r") blcLineDeviceInfoGpt="$blcLineDeviceInfoGpt"$(printf "\r") blcLineDevice=$(printf "
Boot Device<\/span><\/div>\r") blcLineDevice="$blcLineDevice"$(printf "
\r") blcLineDevice="$blcLineDevice"$(printf "
Identifier:<\/span>${gBootDeviceIdentifierPrint}<\/span><\/div>\r") blcLineDevice="$blcLineDevice"$(printf "
mountpoint:<\/span>${mountpointPrint}<\/span><\/div>\r") blcLineDevice="$blcLineDevice"$(printf " <\/div>\r") blcLineDevice="$blcLineDevice"$(printf "\r") blcLineDeviceRescan=$(printf "
Boot Device<\/span><\/div>\r") blcLineDeviceRescan="$blcLineDeviceRescan"$(printf "
\r") blcLineDeviceRescan="$blcLineDeviceRescan"$(printf "
Identifier:<\/span>${gBootDeviceIdentifierPrint}<\/span><\/div>\r") blcLineDeviceRescan="$blcLineDeviceRescan"$(printf "
mountpoint:<\/span>${mountpointPrint}<\/span><\/div>\r") blcLineDeviceRescan="$blcLineDeviceRescan"$(printf "
\r") blcLineDeviceRescan="$blcLineDeviceRescan"$(printf "