[Rear-users] SF.net SVN: rear:[692] trunk/usr/share/rear/lib/bootloader-functions.sh

gdha at users.sourceforge.net gdha at users.sourceforge.net
Mon Jul 18 14:34:53 CEST 2011


Revision: 692
          http://rear.svn.sourceforge.net/rear/?rev=692&view=rev
Author:   gdha
Date:     2011-07-18 12:34:52 +0000 (Mon, 18 Jul 2011)

Log Message:
-----------
The REAR line always showed the NETFS_URL even when RSYNC_URL was in use.
Made a case statement to catch the correct URL according backup topology

Modified Paths:
--------------
    trunk/usr/share/rear/lib/bootloader-functions.sh

Modified: trunk/usr/share/rear/lib/bootloader-functions.sh
===================================================================
--- trunk/usr/share/rear/lib/bootloader-functions.sh	2011-07-15 12:54:03 UTC (rev 691)
+++ trunk/usr/share/rear/lib/bootloader-functions.sh	2011-07-18 12:34:52 UTC (rev 692)
@@ -171,8 +171,12 @@
 	echo "say rear - Recover $(uname -n)"
 	echo "label rear"
 	syslinux_menu "label ^Recover $(uname -n)"
+	case $BACKUP in
+		(NETFS) MY_URL="${NETFS_URL:+NETFS_URL=$NETFS_URL}" ;;
+		(RSYNC) MY_URL="${RSYNC_URL:+RSYNC_URL=$RSYNC_URL}" ;;
+	esac
 	syslinux_menu_help "Rear rescue image kernel $KERNEL_VERSION ${IPADDR:+on $IPADDR} $(date -R)" \
-			"${BACKUP:+BACKUP=$BACKUP} ${OUTPUT:+OUTPUT=$OUTPUT} ${NETFS_URL:+NETFS_URL=$NETFS_URL}"
+			"${BACKUP:+BACKUP=$BACKUP} ${OUTPUT:+OUTPUT=$OUTPUT} ${MY_URL}"
 	echo "kernel kernel"
 	echo "append initrd=initrd.cgz root=/dev/ram0 vga=normal rw $KERNEL_CMDLINE"
 


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