blob: 2e209fb2d82e46ce09987d0556739749d1d808b2 [file] [log] [blame]
Gabriele M5b33c6c2017-01-22 22:50:02 +01001#!/sbin/sh
2
3if mount /system; then
4 exit 0
5fi
6
7# Try to get the block from /etc/recovery.fstab
8block=`cat /etc/recovery.fstab | cut -d '#' -f 1 | grep /system | grep -o '/dev/[^ ]*' | head -1`
9if [ -n "$block" ] && mount $block /system; then
10 exit 0
11fi
12
13exit 1