Last active
February 12, 2019 09:42
-
-
Save rogeliodh/5d70a6cf2a9db99828b3a393340821d3 to your computer and use it in GitHub Desktop.
[x1ii] custom script to extract some info from x1ii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SD=/mnt/mmc/debug | |
mkdir -p "$SD" | |
main() { | |
sleep 3 | |
/bin/mount | |
/bin/dmesg | |
ls -lR /proc/ | |
ls -lR /dev/ | |
ls -lR /sys/ | |
INTERESTING="cmdline cpuinfo devices fb filesystems | |
interrupts iomem ioports meminfo misc modules mounts | |
partitions tty/drivers tty/ldiscs version yaffs zoneinfo | |
jz/gpio/pin jz/gpio/status" | |
for i in $INTERESTING; do | |
echo === /proc/$i === | |
cat /proc/$i | |
done | |
} | |
DATE=`date +%Y%m%d_%H%M%S` | |
main 2>&1 > "$SD/custom_$DATE.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment