Changeset 2281 in /cluster/svnroot


Ignore:
Timestamp:
Mar 24, 2010 1:57:55 PM (11 years ago)
Author:
leemasa
Message:

Added precondition checks to build_bootable_USB.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/bin/build_bootable_USB.sh

    r2205 r2281  
    22#This script must be run as superuser
    33
     4if [ $1 ]; then
    45DRIVE=$1
     6else
     7echo "USAGE:\n $0 <USB DRIVE>"
     8exit
     9fi
     10
     11if [ `id -u` != 0 ]; then
     12echo "error: superuser privileges required"
     13exit
     14fi
    515
    616echo 'Removing existing partitions'
Note: See TracChangeset for help on using the changeset viewer.