79e91fe4ca
Change-Id: Ic2f0a994477a5bc04b32e24b0bd4baaa2773ff55
15 lines
253 B
Bash
15 lines
253 B
Bash
#!/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
|