blob: 60c5e18fb7703a97f25254eb099911a5595825b2 [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
6 if umount /system && umount /system_root; then
7 exit 0
8 fi
9fi
10
11if umount /system; then
12 exit 0
13fi
14
15exit 1