#!/bin/sh # # $Id$ # # This script sets up the USB media # # Get info from config file usbdev=`grep usb-dev /tmp/mondo-restore.cfg | cut -d' ' -f2-` # info from cmdline are predominent for i in `cat /proc/cmdline` ; do echo $i | grep -qi usb= && usbdev=`echo $i | cut -d= -f2` done if [ $usbdev = "" ]; then # No usb configuration neither stored during archive # nor on cmdline so no usb wanted => exiting exit 0 fi LogIt "Mounting USB device ($usbdev) on /mnt/cdrom..." mount -t vfat ${usbdev}1 /mnt/cdrom