@mschmids said in How to detect Ubuntu Touch using system variables in shell script?:

e.g. check for a certain directory/file existence, or read/write access.

indeed, I can still check write/read permissions for Ubuntu Touch /image, but this is not ideal. As a developer, I made image not temporary, write persistent.