1 function ro() { mount -o remount,ro /; }
2 function rw() {
3 mount -o remount,rw /
4 test "$#" = 0 && return;
5 "$@"
6 rc=$?
7 ro
8 return $rc
9 }