Use hasmntopt(3) rather than reinventing the wheel.

Bug: N/A
Test: "power off" still works
Change-Id: I11d3dc22f98ac71608c9929a3fd43319c787d49e
1 file changed