|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
My lab recently transitioned from Ubuntu over to Mac OS X Server. On our old Ubuntu sever we used automount to mount some ISO images of conference proceedings. That way we could browse the contents of the proceedings without actually having to download the ISO and mount it on our own machine. /etc/auto_master ============= /var/foo/conferences /etc/auto_conferences -nobrowse /etc/auto_conferences ================= #!/bin/bash IMAGE_DIR="/var/foo/images" MOUNT_OPTS="-fstype=cd9660,ro" key="$1" image_path="$IMAGE_DIR/$key.iso" /usr/bin/logger -p local0.notice "automount: attempting to mount $image_path" if [ -f $image_path ]; then device=`/usr/bin/hdid -nomount $image_path` /usr/bin/logger -p local0.notice "automount: mounting $image_path using device $device" echo -e "$MOUNT_OPTS\t:$device" exit fi /usr/bin/logger -p local0.notice "automount: could not mount $image_path" exit 1 This may not be an optimal solution, but it serves my purposes (trusted users only) well enough. It looks in the IMAGE_DIR to see if there is an ISO image that matches the key passed in. If an ISO exists it uses hdid to attach the image to a device and the device name is stored in device. MOUNT_OPTS and device are used to create an entry for the executable map. I hope this helps someone else down the line. Thanks to everyone that answered. Cheers! Rod "I love deadlines. I like the whooshing sound they make as they fly by." --Douglas Adams |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.