USB Storage mounted: Check if drive mounted and Writeable

Is there a default method in OpenWRT to check if any USB storage is mounted and available for writing. I would like to write to USB Storage if is present or show an error message in Luci interface warning the users.

Searching through the docs, I found this snippet.

afaik no, the only thing is hotplug events when the USB/Sata/whatever is inserted or removed, so you probably just have to create a dummy file in the USB and check if the file exists, or do it in the mount folder on the main storage as explained in that old doc.

Thank you @bobafetthotmail for clearing that up!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.