summaryrefslogtreecommitdiff
path: root/local/bin/grubfk
blob: 06a87f50b082975256c6bc6d57e5545e205aa90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/zsh

grub_screen() {
  clear
  echo -e "\n\n\t           GNU GRUB  2.06"
  echo -e "\n"
  echo -e "\t  Minimal BASH-like line editing is supported. For the first word, TAB"
  echo -e "\t  lists possible command completions. Anywhere else TAB lists possible"
  echo -e "\t  device or file completions."
  echo -e "\n"
}

grub_screen

# Fake GRUB prompt
while true; do
  echo -ne "  grub> "
  read -r command
  case $command in
    exit|quit)
      clear
      break
      ;;
    *)
      echo -e "\t  Unknown command.  Press a key to continue..."
      read -r dummy
      ;;
  esac
done