
Ubuntu/WINdows가 포함된 이중 부팅 시스템이 있습니다. 평일에는 Windows에 접속하지 않으려고 합니다. 저는 평일에 grub 메뉴를 건너뛰기 위해 이 사용자 정의 grub을 구성하고 /boot/grub/custom.cfg에 저장했습니다. 평일에는 잘 작동하지만 지금은 토요일인데 여전히 우분투로 바로 들어갑니다.
# This module creates special variables that return the current date/time
insmod datehook
# Boot "Ubuntu" on weekdays
set default="Ubuntu"
if [ $DAY != SUNDAY -a $DAY != SATURDAY ]; then
set GRUB_TIMEOUT=0
set timeout=0
set GRUB_HIDDEN_TIMEOUT_QUIET=true
fi