#! /bin/sh
#only support sda1 currently
if [ -r /dev/sda1 ]; then
   if [ ! -d "/media/usb_aeroflex" ]; then
      mount -o remount,rw /
      mkdir -p /media/usb_aeroflex
      mount -o remount,ro /
   fi
   #currently mount as read-only
   mount -r /dev/sda1 /media/usb_aeroflex   
else
   umount /dev/sda1
fi