blob: 19b34311cf829af09d16b64f11a3abd3c17056fa [file] [log] [blame]
Christopher N. Hesse1f94c932018-06-11 21:56:24 +02001#!/sbin/sh
2
3# Modern devices use /system as root ("/")
4system_as_root=`getprop ro.build.system_root_image`
5if [ "$system_as_root" == "true" ]; then
Michael Bestas79e91fe2019-02-11 19:04:11 +02006 if umount /system_root; then
Christopher N. Hesse1f94c932018-06-11 21:56:24 +02007 exit 0
8 fi
Michael Bestas79e91fe2019-02-11 19:04:11 +02009else
10 if umount /system; then
Christopher N. Hesse1f94c932018-06-11 21:56:24 +020011 exit 0
Michael Bestas79e91fe2019-02-11 19:04:11 +020012 fi
Christopher N. Hesse1f94c932018-06-11 21:56:24 +020013fi
14
15exit 1