Christopher N. Hesse | 1f94c93 | 2018-06-11 21:56:24 +0200 | [diff] [blame] | 1 | #!/sbin/sh |
2 | |||||
3 | # Modern devices use /system as root ("/") | ||||
4 | system_as_root=`getprop ro.build.system_root_image` | ||||
5 | if [ "$system_as_root" == "true" ]; then | ||||
6 | if umount /system && umount /system_root; then | ||||
7 | exit 0 | ||||
8 | fi | ||||
9 | fi | ||||
10 | |||||
11 | if umount /system; then | ||||
12 | exit 0 | ||||
13 | fi | ||||
14 | |||||
15 | exit 1 |