blob: 19b34311cf829af09d16b64f11a3abd3c17056fa [file] [log] [blame]
#!/sbin/sh
# Modern devices use /system as root ("/")
system_as_root=`getprop ro.build.system_root_image`
if [ "$system_as_root" == "true" ]; then
if umount /system_root; then
exit 0
fi
else
if umount /system; then
exit 0
fi
fi
exit 1