summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
blob: a4daf734ea6b5203209af7d812351705545eac21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
mount /dev/mmcblk0p1 /mnt
echo "Image info snapshot" > /mnt/info.txt

echo >> /mnt/info.txt
echo "/etc/angstrom-version:" >> /mnt/info.txt
cat /etc/angstrom-version >> /mnt/info.txt

echo >> /mnt/info.txt
echo "/proc/cpuinfo:" >> /mnt/info.txt
cat /proc/cpuinfo >> /mnt/info.txt

echo >> /mnt/info.txt
echo "uname -a:" >> /mnt/info.txt
uname -a >> /mnt/info.txt

echo >> /mnt/info.txt
echo "/proc/cmdline:" >> /mnt/info.txt
cat /proc/cmdline >> /mnt/info.txt

echo >> /mnt/info.txt
echo "ifconfig:" >> /mnt/info.txt
ifconfig >> /mnt/info.txt

echo >> /mnt/info.txt
echo "/etc/angstrom-build-info:" >> /mnt/info.txt
cat /etc/angstrom-build-info >> /mnt/info.txt

echo >> /mnt/info.txt
echo "/etc/image-version-info:" >> /mnt/info.txt
cat /etc/image-version-info >> /mnt/info.txt

echo >> /mnt/info.txt
echo "opkg list-installed:" >> /mnt/info.txt
opkg list-installed >> /mnt/info.txt

umount /mnt