mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-06 09:33:15 +00:00
14 lines
273 B
Bash
14 lines
273 B
Bash
#!/sbin/sh
|
|
|
|
if mount /firmware; then
|
|
exit 0
|
|
fi
|
|
|
|
# Try to get the block from /etc/recovery.fstab
|
|
block=`cat /etc/recovery.fstab | cut -d '#' -f 1 | grep /firmware | grep -o '/dev/[^ ]*' | head -1`
|
|
if [ -n "$block" ] && mount $block /firmware; then
|
|
exit 0
|
|
fi
|
|
|
|
exit 1
|