2017-04-11 07:16:20 -04:00
|
|
|
#!/bin/sh
|
2017-04-12 06:57:26 -04: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 15:24:28 -08:00
|
|
|
. /tmp/config
|
2017-04-11 07:16:20 -04: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 17:37:14 -04:00
|
|
|
insmod /lib/modules/usb-storage.ko
|
2017-04-11 07:16:20 -04: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'
|
2019-05-23 13:09:18 +02:00
|
|
|
echo ' flash.sh /media/x230.rom'
|
2017-04-11 07:16:20 -04:00
|
|
|
echo ''
|
|
|
|
|
|
|
|
exec /bin/ash
|