3 IFS
=',' read -r -a OPTIONS
< <(findmnt
--json / | jq
-r '.[][0]["options"]')
5 for OPTION
in "${OPTIONS[@]}" ; do
6 if [[ "${OPTION}" == "ro" ]] ; then
12 if [[ "${RO}" == "0" ]] ; then
13 echo "'/' is mounted read-only, rebooting"
This page took 0.029929 seconds and 4 git commands to generate.