ROOT/root/.bashrc
changeset 6 10f684acb314
parent 1 8ff135ba3a93
equal deleted inserted replaced
5:6dec881621ea 6:10f684acb314
     1 function ro() { mount -o remount,ro /; }
     1 function ro() { 
       
     2     mount -o remount,ro / 
       
     3     blockdev --setrw /dev/sda1
       
     4     PS1="$_OLD_PS1"
       
     5 }
       
     6 
     2 function rw() {
     7 function rw() {
       
     8 	blockdev --setrw /dev/sda1
     3         mount -o remount,rw /
     9         mount -o remount,rw /
       
    10 	_OLD_PS1="$PS1"
       
    11 	PS1="[RW] $PS1"
       
    12 
     4         test "$#" = 0 && return;
    13         test "$#" = 0 && return;
     5         "$@"
    14         "$@"
     6         rc=$?
    15         rc=$?
     7         ro
    16         ro
     8         return $rc
    17         return $rc