2023-03-07 10:10:32 -05:00
|
|
|
#!/bin/ash
|
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
|
|
|
|
|
2023-03-07 10:10:32 -05:00
|
|
|
. /etc/ash_functions
|
2018-12-06 15:24:28 -08:00
|
|
|
. /tmp/config
|
2017-04-11 07:16:20 -04:00
|
|
|
|
2023-03-13 13:21:29 -04:00
|
|
|
TRACE "Under /bin/xx30-flash.init"
|
2023-02-18 12:58:43 -05:00
|
|
|
|
2023-03-13 13:21:29 -04: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 07:16:20 -04: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 13:21:29 -04:00
|
|
|
echo ' flash.sh /media/xx30-legacy.rom'
|
2017-04-11 07:16:20 -04:00
|
|
|
echo ''
|
|
|
|
|
2023-03-07 10:10:32 -05:00
|
|
|
exec /bin/sh
|