[Fai-commit] r3165 - trunk/examples/simple/scripts/LAST
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Fri Dec 9 23:32:53 UTC 2005
Author: lange
Date: 2005-12-09 23:32:53 +0000 (Fri, 09 Dec 2005)
New Revision: 3165
Modified:
trunk/examples/simple/scripts/LAST/50-misc
Log:
fix code that detect of a kernel is installed, now it does not break
if more than one kernel is installed
Modified: trunk/examples/simple/scripts/LAST/50-misc
===================================================================
--- trunk/examples/simple/scripts/LAST/50-misc 2005-12-09 22:44:00 UTC (rev 3164)
+++ trunk/examples/simple/scripts/LAST/50-misc 2005-12-09 23:32:53 UTC (rev 3165)
@@ -26,8 +26,8 @@
echo "Running \"apt-get -f install\" for the last time."
$ROOTCMD apt-get -f install
-[ -f $target/boot/vmlinu* ] || echo "ERROR: No kernel was installed. Have a look at shell.log"
-
+lskernels=$(echo $target/boot/vmlinu*)
+[ -f ${lskernels%% *} ] || echo "ERROR: No kernel was installed. Have a look at shell.log"
# copy sources.list
fcopy -i /etc/apt/sources.list
More information about the Fai-commit
mailing list