summaryrefslogtreecommitdiffstats
path: root/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
blob: 62aab39e729c1dda6da587279895b6ad23706211 (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
#!/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 "opkg list-installed:" >> /mnt/info.txt
opkg list-installed >> /mnt/info.txt

umount /mnt