persistant mac storage

This commit is contained in:
josch 2009-09-12 22:43:08 +00:00
parent fd6bc203f7
commit dfa2ebe7a5

View file

@ -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."