mirror of
https://github.com/open-sdr/openwifi.git
synced 2024-12-21 14:38:21 +00:00
30 lines
452 B
Bash
Executable File
30 lines
452 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
rm BOOT.BIN
|
|
sync
|
|
wget ftp://192.168.10.1/kernel_boot/output_boot_bin/BOOT.BIN
|
|
sync
|
|
rm uImage
|
|
sync
|
|
wget ftp://192.168.10.1/adi-linux/arch/arm/boot/uImage
|
|
sync
|
|
rm devicetree.dtb
|
|
sync
|
|
wget ftp://192.168.10.1/kernel_boot/devicetree.dtb
|
|
sync
|
|
#slepp 0.5
|
|
mount /dev/mmcblk0p1 /sdcard
|
|
sync
|
|
#sleep 0.5
|
|
cp BOOT.BIN /sdcard/ -f
|
|
cp uImage /sdcard/ -f
|
|
cp devicetree.dtb /sdcard/ -f
|
|
sync
|
|
#sleep 0.5
|
|
umount /sdcard
|
|
sync
|
|
#sleep 3
|
|
sudo reboot now
|
|
|