mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 22:32:23 +00:00
5bc2bc88e4
-qemu-coreboot-*whiptail-tpm1(-hotp) boards have 'export CONFIG_DEBUG_OUTPUT=y' by default now
29 lines
610 B
Bash
Executable File
29 lines
610 B
Bash
Executable File
#!/bin/sh
|
|
# Initialize the USB and network device drivers,
|
|
# invoke a recovery shell and prompt the user for how to proceed
|
|
|
|
. /etc/functions
|
|
. /tmp/config
|
|
|
|
DEBUG "Under /bin/x230-flash.init"
|
|
|
|
insmod /lib/modules/ehci-hcd.ko
|
|
insmod /lib/modules/ehci-pci.ko
|
|
insmod /lib/modules/xhci-hcd.ko
|
|
insmod /lib/modules/xhci-pci.ko
|
|
insmod /lib/modules/e1000e.ko
|
|
insmod /lib/modules/usb-storage.ko
|
|
|
|
tpm extend -ix 4 -ic recovery
|
|
sleep 2
|
|
|
|
echo '***** Starting recovery shell'
|
|
echo ''
|
|
echo 'To install from flash drive:'
|
|
echo ''
|
|
echo ' mount -o ro /dev/sdb1 /media'
|
|
echo ' flash.sh /media/x230.rom'
|
|
echo ''
|
|
|
|
exec /bin/ash
|