Fixed typo and adjusted formatting
This commit is contained in:
parent
cf565451ef
commit
7bf8cc32b1
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ for prefix in gfx gpu; do
|
||||||
for var in /sys/firmware/efi/efivars/${prefix}*; do
|
for var in /sys/firmware/efi/efivars/${prefix}*; do
|
||||||
# The test below is to avoid empty or nonexistent paths
|
# The test below is to avoid empty or nonexistent paths
|
||||||
if [[ -e "${var}" ]]; then
|
if [[ -e "${var}" ]]; then
|
||||||
echo -e "${YELLOW}Detected:${CLEAR} $f"
|
echo -e "${YELLOW}Detected:${CLEAR} $var"
|
||||||
needs_nvram_reset="yes"
|
needs_nvram_reset="yes"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -33,7 +33,7 @@ if [[ ! -e "/sys/firmware/efi/efivars" ]]; then
|
||||||
echo -e "${RED}ERROR:${CLEAR} EFIVARS not found"
|
echo -e "${RED}ERROR:${CLEAR} EFIVARS not found"
|
||||||
elif cmp "$SOURCE" "$DEST" >/dev/null 2>&1; then
|
elif cmp "$SOURCE" "$DEST" >/dev/null 2>&1; then
|
||||||
# EFI var matches desired state
|
# EFI var matches desired state
|
||||||
echo -e "${ORANGE}Discrete GPU already disabled${CLEAR}"
|
echo -e "${GREEN}Discrete GPU already disabled${CLEAR}"
|
||||||
elif [[ "$needs_nvram_reset" == "yes" ]]; then
|
elif [[ "$needs_nvram_reset" == "yes" ]]; then
|
||||||
# One or more gfx/gpu EFI vars detected
|
# One or more gfx/gpu EFI vars detected
|
||||||
echo -e "${RED}ERROR:${CLEAR} Detected the above EFIVARS"
|
echo -e "${RED}ERROR:${CLEAR} Detected the above EFIVARS"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue