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