blob: 45363a4dc72f71408080e0c2d5b740d2287971b4 (
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
34
35
|
#!/bin/sh
set -e
modprobe socinfo || true
if [ -r /sys/devices/soc0/machine ] ; then
MACHINE=`cat /sys/devices/soc0/machine`
case $MACHINE in
SM8250|QRB5165)
WHAT=/lib/firmware/qcom/sm8250/dspso.bin
;;
esac
fi
if [ -z "$WHAT" -o ! -r "$WHAT" ] ; then
i=0
while ! [ -d /dev/disk/by-partlabel ] ; do
i=$(( $i + 1))
[ $i -gt 30 ] && break;
sleep 1
done
if [ -h /dev/disk/by-partlabel/dsp_a ] ; then
WHAT=/dev/disk/by-partlabel/dsp_a
else
WHAT=/dev/disk/by-partlabel/dsp
fi
fi
if [ -e "$WHAT" ] ; then
mount $WHAT /usr/lib/rfsa -o ro
else
echo "Not mounting /usr/lib/rfsa, partition/image not found" 1>&2
fi
|