From dfa2ebe7a53534a1578d8dde43b54dd8c3e883ed Mon Sep 17 00:00:00 2001 From: josch Date: Sat, 12 Sep 2009 22:43:08 +0000 Subject: [PATCH] persistant mac storage --- pyneo-rootfs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index 6a87313..c7f79a5 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -222,7 +222,11 @@ echo "Calibrating Touchscreen." if [ \$DEVICE = "gta01" ]; then echo -67 36365 -2733100 -48253 -310 45219816 65536 > /etc/pointercal echo "Appending MAC address to kernel boot parameters." - echo -n " g_ether.host_addr=\`ifconfig -a | awk '/^usb0/{print \$5}'\`" >> /boot/append-GTA01 + [ -d /home/persistant ] || mkdir /home/persistant + if [ ! -f /home/persistant/mac ]; then + echo \`ifconfig -a | awk '/^usb0/{print \$5}'\` > /home/persistant/mac + fi + echo -n " g_ether.host_addr=\`head -n 1 /home/persistant/mac\`" >> /boot/append-GTA01 echo "Appending sound module." echo "snd-soc-neo1973-wm8753" > /etc/modules echo "Configuring host alias."