#!/bin/sh # vim: set sw=4 ts=4 et: # written by guido socher # A warning for users which do not use Linux to access the Internet: # This is a UNIX text file. Before you make it executable to run # it as a script make sure that it has UNIX line endings ("\n"). # help() { cat < /dev/null 2>&1; then echo "camera0 already mounted" else echo "mounting /mnt/camera0 ..." mount /mnt/camera0 || error "ERROR: mount /mnt/camera0 failed" fi echo "moving all images to \"$1\" ..." for f in `find /mnt/camera0 -type f -print` ; do echo "$f ..." mv $f "$1" done echo "un-mounting /mnt/camera0 ..." umount /mnt/camera0 || error "ERROR: umount failed" echo "done" #