summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/update_kernel3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel
index 5da807e71..9c2145e21 100755
--- a/kernel/update_kernel
+++ b/kernel/update_kernel
@@ -134,7 +134,8 @@ fi
[ -n "$main" -a -e $ALL_KERNELS/$main ] || {
cd $ALL_KERNELS
main=$(echo 2.6* | sed 's/.* //')
- [ -n "$main" ] || main=$(echo 2.4* | sed 's/.* //')
+ [ -e "$main" ] || main=$(echo 2.4* | sed 's/.* //')
+ [ -e "$main" ] || { echo "no kernel installed in $ALL_KERNELS"; exit 1; }
echo "Choosing $main"
echo $main > .main
cd ..