summarylogtreecommitdiffstats
path: root/mkinitcpio.hook
blob: 2dd05098d5ee463dada7d8805049245c487dc827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/ash
# SPDX-License-Identifier: GPL-2.0-only

run_hook() {
  read -n 1 -t 0.3 char
  if [[ "$char" == "x" ]]; then
    echo "Entering busybox ash shell."
    echo "Enter 'bpir3-flash2emmc /tmp/bpir.img.xz' to flash it to the EMMC on th R3."
    echo "Enter 'exit' to continue booting."
    ash
  fi
}