1 2 3 4 5 6 7 8 9 10 11 12 13
#!bin/sh function exe_cmd() { eval $@; } exe_cmd "cat /dev/block/by-name/uboot_log" sleep 1024h echo ubootlog end