EdgeGateway_FSU/CommonSH/4.1.15-2.1.0-g3dc0a4b-Dts_b...

14 lines
442 B
Bash
Raw Normal View History

2024-03-15 17:15:46 +08:00
#!/bin/bash
cd /home/alientek/linux/IMX6ULL/linux/temp/linux-imx-4.1.15-2.1.0-g3dc0a4b-v2.7/arch/arm/boot/dts
echo "GetTime"
TarTimeStr=`date "+%Y-%m-%d-%H:%M:%S"`
echo "tar >bk"
#--force-local 忽略:符号 kooloo add 202310
tar -czvf dts_bk+$TarTimeStr.tar.gz *kooloo*.dts --force-local
mv dts_bk*.tar.gz /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/bk
cd /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/CommonSH
echo "END"