mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
init: fix grub check
This commit is contained in:
@@ -738,7 +738,7 @@
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "\"$GRUB_DEFAULT\"" -a -f /flash/grub.cfg ]; then
|
||||
if [ -n "$GRUB_DEFAULT" -a -f /flash/grub.cfg ]; then
|
||||
if grep -q "^menuentry \"$GRUB_DEFAULT\"" /flash/grub.cfg; then
|
||||
crnt_default="$(awk '/^set default/ {print substr($2,9,19)}' /flash/grub.cfg)"
|
||||
if [ ! "$crnt_default" = "\"$GRUB_DEFAULT\"" ]; then
|
||||
|
||||
Reference in New Issue
Block a user