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-03-13 17:21:29 +00:00
|
|
|
TRACE "Under /bin/xx30-flash.init"
|
2023-02-18 17:58:43 +00:00
|
|
|
|
2023-03-13 17:21:29 +00:00
|
|
|
busybox insmod /lib/modules/ehci-hcd.ko
|
|
|
|
busybox insmod /lib/modules/ehci-pci.ko
|
|
|
|
busybox insmod /lib/modules/xhci-hcd.ko
|
|
|
|
busybox insmod /lib/modules/xhci-pci.ko
|
|
|
|
busybox insmod /lib/modules/e1000e.ko
|
|
|
|
busybox insmod /lib/modules/usb-storage.ko
|
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'
|
2023-03-13 17:21:29 +00:00
|
|
|
echo ' flash.sh /media/xx30-legacy.rom'
|
2017-04-11 11:16:20 +00:00
|
|
|
echo ''
|
|
|
|
|
2023-03-07 15:10:32 +00:00
|
|
|
exec /bin/sh
|