[Rear-users] SF.net SVN: rear:[730] trunk/usr/share/rear/prep/USB/default/ 04_set_NETFS_requirements.sh

dag- at users.sourceforge.net dag- at users.sourceforge.net
Thu Nov 17 13:49:14 CET 2011


Revision: 730
          http://rear.svn.sourceforge.net/rear/?rev=730&view=rev
Author:   dag-
Date:     2011-11-17 12:49:14 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Fix problem using USB_DEVICE in configuration

Modified Paths:
--------------
    trunk/usr/share/rear/prep/USB/default/04_set_NETFS_requirements.sh

Modified: trunk/usr/share/rear/prep/USB/default/04_set_NETFS_requirements.sh
===================================================================
--- trunk/usr/share/rear/prep/USB/default/04_set_NETFS_requirements.sh	2011-11-17 12:48:45 UTC (rev 729)
+++ trunk/usr/share/rear/prep/USB/default/04_set_NETFS_requirements.sh	2011-11-17 12:49:14 UTC (rev 730)
@@ -7,5 +7,12 @@
     BACKUP_URL="usb://$USB_DEVICE"
 fi
 
+if [[ -z "$OUTPUT_URL" ]]; then
+    [[ "$USB_DEVICE" ]]
+    StopIfError "You must specify either OUTPUT_URL or USB_DEVICE !"
+
+    OUTPUT_URL="usb://$USB_DEVICE"
+fi
+
 USB_PREFIX="rear/$(uname -n)/$(date +%Y%m%d.%H%M)"
 NETFS_PREFIX="$USB_PREFIX"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rear-users mailing list