2023-03-07 15:10:32 +00:00
|
|
|
#!/bin/ash
|
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
|
|
|
|
|
2023-03-07 15:10:32 +00:00
|
|
|
. /etc/ash_functions
|
2018-12-06 23:24:28 +00:00
|
|
|
. /tmp/config
|
2017-04-11 11:16:20 +00:00
|
|
|
|
2023-02-20 16:01:17 +00:00
|
|
|
TRACE "Under /bin/x230-flash.init"
|
2023-02-18 17:58:43 +00:00
|
|
|
|
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
|
|
|
|
2022-08-25 18:43:31 +00:00
|
|
|
tpmr extend -ix 4 -ic recovery
|
2017-04-11 11:16:20 +00:00
|
|
|
sleep 2
|
|
|
|
|
|
|
|
echo '***** Starting recovery shell'
|
|
|
|
echo ''
|
|
|
|
echo 'To install from flash drive:'
|
|
|
|
echo ''
|
|
|
|
echo ' mount -o ro /dev/sdb1 /media'
|
2019-05-23 11:09:18 +00:00
|
|
|
echo ' flash.sh /media/x230.rom'
|
2017-04-11 11:16:20 +00:00
|
|
|
echo ''
|
|
|
|
|
2023-03-07 15:10:32 +00:00
|
|
|
exec /bin/sh
|