init: fix grub check

This commit is contained in:
MilhouseVH 2018-05-12 01:59:20 +01:00
parent 52aa5db587
commit 7f61cb0349

View File

@ -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