From: Greg Brockman Date: Mon, 18 Jan 2010 00:08:13 +0000 (-0500) Subject: Changed xen.network -> xen; fixed style for omitted option X-Git-Tag: 0.0.33^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/commitdiff_plain/9e1a9a15bd865d33275e6255dd8f01062934883c?hp=7eae7998070e76d9ea950fe2a7c4622af9e45e1c Changed xen.network -> xen; fixed style for omitted option svn path=/trunk/packages/invirt-autoinstaller/; revision=2899 --- diff --git a/common/usr/sbin/invirt-create-image b/common/usr/sbin/invirt-create-image index 9e555a5..17f9d03 100644 --- a/common/usr/sbin/invirt-create-image +++ b/common/usr/sbin/invirt-create-image @@ -10,12 +10,12 @@ set -e -if [ "$GATEWAY" = "" ]; then - GATEWAY=$(invirt-getconf xen.network.gateway) +if [ -z "$GATEWAY" ]; then + GATEWAY=$(invirt-getconf network.gateway) fi -if [ "$NETMASK" = "" ]; then - NETMASK=$(invirt-getconf xen.network.netmask) +if [ -z "$NETMASK" ]; then + NETMASK=$(invirt-getconf network.netmask) fi echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"