blob: 7fd3013bfd0d6fd59d046efe977388e542b2f80a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
}
|