]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Refactoring: Normalize 80-kernel-install for Ubuntus
authorAxel Beckert <abe@deuxchevaux.org>
Tue, 22 Jan 2013 01:01:13 +0000 (02:01 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Tue, 22 Jan 2013 01:01:13 +0000 (02:01 +0100)
hooks/edgy/80-install-kernel
hooks/intrepid/80-install-kernel
hooks/karmic/80-install-kernel

index 95ae1f012e995a783f4a9a22b863383508d9affe..5e851267171664f2a3fbe9bb5f4c36d91d213173 100755 (executable)
@@ -27,7 +27,7 @@ fi
 
 logMessage Script $0 starting
 
-if [ ${pygrub} ]; then
+if [ "${pygrub}" ]; then
 
 #
 # Attempt to install a xen kernel, if that fails, then install a normal one
@@ -103,7 +103,7 @@ installDebianPackage ${prefix} module-init-tools
 
 else
     logMessage pygrub not set, skipping kernel install
-fi
+fi # if pygrub
 
 #
 #  Log our finish
index 4ca7adef4ed7f742a96a0b8923a52b3ef7bb7009..e979715b616bbbab18ae4d410709a20c200d6056 100755 (executable)
@@ -27,7 +27,7 @@ fi
 
 logMessage Script $0 starting
 
-if [ ${pygrub} ]; then
+if [ "${pygrub}" ]; then
 
 #
 # Attempt to install a xen kernel, if that fails, then install a normal one
@@ -93,7 +93,7 @@ installDebianPackage ${prefix} module-init-tools
 
 else
     logMessage pygrub not set, skipping kernel install
-fi
+fi # if pygrub
 
 #
 #  Log our finish
index 9c94263a2fff76c8a268647a54bb3d9ceaf3d12c..b136b4a01fd3c31ddfd122503e57bce790fddaec 100755 (executable)
@@ -20,14 +20,14 @@ if [ -e /usr/lib/xen-tools/common.sh ]; then
 else
     . ./hooks/common.sh
 fi
-
-if [ "${pygrub}" ]; then
 #
 # Log our start
 #
 
 logMessage Script $0 starting
 
+if [ "${pygrub}" ]; then
+
 #
 # The type of kernel that we will be installing
 #