#!/bin/sh


unlock_fs()
{
    mount / -o remount,rw
}

lock_fs()
{
    mount / -o remount
	sync
}

do_sync()
{
   what=$1
   case "$what" in
   flash) 
           ;;
   image) 
           #repair user rights on /www directory
           chmod g+r /www -R
           ;;
   manual) 
           ;;
   retain) 
           ;;
   *) 
           ;;
   esac
   sync   # now do sync only
}