openwifi/user_space/sdcard_boot_update.sh
2019-12-10 14:03:47 +01:00

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