Created
January 17, 2016 17:31
-
-
Save yakovsh/f522d061524a43c9464a to your computer and use it in GitHub Desktop.
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,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 <[email protected]> | |
# http://www.jpilot.org/pipermail/jpilot/2004-September/017103.html | |
# Slightly modified by Yakov Shafranovich <[email protected]>. | |
# | |
# 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 <[email protected]>" | |
echo "http://www.jpilot.org/pipermail/jpilot/2004-September/017103.html" | |
echo "Sligthly modified by Yakov Shafranovich <[email protected]>" | |
echo "" | |
echo "Date: 09/22/2004" | |
echo "" | |
echo "Usage: cardexport {start|stop}" | |
exit 1 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment