#!/bin/sh # # This script is used to load and unload external SD cards in Palm Pilot # devices that are made available to the OS as a USB drive by CardExport II # program, made by www.softick.com. # # Please make sure that /mnt/usbdrive directory exists and that you have # the usb-storage support in your kernel. You must be root to run this. # # Usage: cardexport {start|stop} # # Based on the script created by Justus H. Piater # http://www.jpilot.org/pipermail/jpilot/2004-September/017103.html # Sligthly modified by Yakov Shafranovich . # # Date: 09/22/2004 # case "$1" in start) mount -t vfat -o dmask=077,fmask=177,sync /dev/sda1 /mnt/usbdrive ;; stop) umount /mnt/usbdrive ;; *) echo "Ths script is used to load and unload external SD cards in Palm Pilot" echo "devices that are made available to the OS as a USB drive by CardExport II" echo "program, made by www.softick.com." echo "" echo "Please make sure that /mnt/usbdrive directory exists and that you have" echo "the usb-storage support in your kernel" echo "" echo "Based on the script created by Justus H. Piater " echo "http://www.jpilot.org/pipermail/jpilot/2004-September/017103.html" echo "Sligthly modified by Yakov Shafranovich " echo "" echo "Date: 09/22/2004" echo "" echo "Usage: cardexport {start|stop}" exit 1 esac exit 0