Skip to content

Commit

Permalink
Extend to 5 menus
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSuh-Q3 authored Aug 4, 2022
1 parent 4a042ec commit 398d79f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion grubmenu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ echo
echo "Setting default boot entry to SATA"
sudo sed -i "/set default=/cset default=\"1\"" /mnt/localdiskp1/boot/grub/grub.cfg
elif [ "$1" = "3" ]; then
echo "Setting default boot entry to Tiny Core Image Build"
echo "Setting default boot entry to USB Re-Install DSM / Tiny Core Image Build"
sudo sed -i "/set default=/cset default=\"2\"" /mnt/localdiskp1/boot/grub/grub.cfg
elif [ "$1" = "4" ]; then
echo "Setting default boot entry to SATA Re-Install DSM"
sudo sed -i "/set default=/cset default=\"3\"" /mnt/localdiskp1/boot/grub/grub.cfg
elif [ "$1" = "5" ]; then
echo "Setting default boot entry to Tiny Core Image Build"
sudo sed -i "/set default=/cset default=\"4\"" /mnt/localdiskp1/boot/grub/grub.cfg
fi

echo
Expand Down

0 comments on commit 398d79f

Please sign in to comment.