|
|
|
@ -66,3 +66,22 @@ cat > /etc/e2fsck.conf <<-__EOF__
|
|
|
|
|
broken_system_clock = true
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
cat > /etc/init.d/board_tweaks.sh <<-__EOF__
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
if [ -f /boot/uboot/SOC.sh ] ; then
|
|
|
|
|
board=\$(cat /boot/uboot/SOC.sh | grep "board" | awk -F"=" '{print \$2}')
|
|
|
|
|
case "\${board}" in
|
|
|
|
|
BEAGLEBONE_A)
|
|
|
|
|
if [ -f /boot/uboot/tools/target/BeagleBone.sh ] ; then
|
|
|
|
|
/bin/sh /boot/uboot/tools/target/BeagleBone.sh &> /dev/null &
|
|
|
|
|
fi;;
|
|
|
|
|
esac
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
chmod u+x /etc/init.d/board_tweaks.sh
|
|
|
|
|
insserv board_tweaks.sh || true
|
|
|
|
|
|
|
|
|
|