2017-04-11 11:16:20 +00:00
|
|
|
#!/bin/sh
|
2017-04-12 10:57:26 +00:00
|
|
|
# Initialize the USB and network device drivers,
|
|
|
|
# invoke a recovery shell and prompt the user for how to proceed
|
|
|
|
|
|
|
|
. /etc/functions
|
2018-12-06 23:24:28 +00:00
|
|
|
. /tmp/config
|
2017-04-11 11:16:20 +00:00
|
|
|
|
|
|
|
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
|
2017-04-16 21:37:14 +00:00
|
|
|
insmod /lib/modules/usb-storage.ko
|
2017-04-11 11:16:20 +00:00
|
|
|
|
|
|
|
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 ' flashrom-x230.sh /media/x230.rom'
|
|
|
|
echo ''
|
|
|
|
|
|
|
|
exec /bin/ash
|