Bugfix and fine tuning

https://github.com/igorpecovnik/lib/pull/166
This commit is contained in:
Igor Pecovnik 2016-02-20 20:11:27 +01:00
parent 59029d7abc
commit 9db83e1d2c

View File

@ -60,6 +60,10 @@ if [ "$ARCH" = "armv7l" ]; then
if [ $MEMTOTAL -gt 1500 ]; then
ID="Orange Pi+ 2"
fi
# redistribute USB irqs to dedicated cores
echo 2 >/proc/irq/$(awk -F":" '/usb2/ {print $1}' </proc/interrupts)/smp_affinity
echo 4 >/proc/irq/$(awk -F":" '/usb3/ {print $1}' </proc/interrupts)/smp_affinity
echo 8 >/proc/irq/$(awk -F":" '/gmac0/ {print $1}' </proc/interrupts)/smp_affinity
case ${ORANGEPIPHY} in
00441400*)
if [ "$WIFI8189ES" != "" ]; then
@ -69,7 +73,6 @@ if [ "$ARCH" = "armv7l" ]; then
fi
;;
esac
fi
elif [ "$WIFI8189ES" != "" ]; then
ID="Orange Pi Lite"
elif [ $MEMTOTAL -gt 600 ]; then
@ -125,7 +128,7 @@ if [ "$ARCH" = "armv7l" ]; then
fi
[ -f /proc/asound/imxvt1613audio/id ] && ID="Udoo"
fi
fi
[ -f /proc/device-tree/model ] && MACHINE=$(cat /proc/device-tree/model)
if [[ $MACHINE == *LIME2 ]]; then ID="Lime 2"; fi