#!/usr/bin/ash # SPDX-License-Identifier: GPL-2.0-only run_hook() { read -n 1 -t 0.3 char if [[ "$char" == "E" ]]; then echo "Executing 'bpir-flash2emmc /tmp/bpir.img.xz' ..." bpir-flash2emmc /tmp/bpir.img.xz echo "Entering busybox ash shell." ash elif [[ "$char" == "x" ]]; then echo "Entering busybox ash shell." echo "Enter 'bpir-flash2emmc /tmp/bpir.img.xz' to flash it to the EMMC on th R3." echo "Enter 'exit' to continue booting." ash fi }