source: branches/2.2.5/mindi/rootfs/sbin/start-usb @ 1698

Last change on this file since 1698 was 1698, checked in by Bruno Cornec, 13 years ago

Add USB support at restore time (no test done yet). New start-usb script
PB varibale added where useful

  • Property svn:executable set to *
File size: 515 bytes
Line 
1#!/bin/sh
2#
3# $Id$
4#
5# This script sets up the USB media
6#
7
8# Get info from config file
9usbdev=`grep usb-dev /tmp/mondo-restore.cfg | cut -d' ' -f2-`
10
11# info from cmdline are predominent
12for i in `cat /proc/cmdline` ; do
13    echo $i | grep -qi usb= && usbdev=`echo $i | cut -d= -f2`
14done
15
16if [ $usbdev = "" ]; then
17    # No usb configuration neither stored during archive
18    # nor on cmdline so no usb wanted => exiting
19    exit 0
20fi
21
22LogIt "Mounting USB device ($usbdev) on /mnt/cdrom..."
23mount -t vfat ${usbdev}1 /mnt/cdrom
Note: See TracBrowser for help on using the repository browser.