summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/post_upgrade_command')
-rwxr-xr-xtmp/post_upgrade_command4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index 6c96abc..577d06e 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -25,4 +25,6 @@ if [ $KERNELTYPE = "SMP" ]; then
cp /kernels/kernel_SMP.gz /boot/kernel/kernel.gz
fi
fi
-rm -rf /kernels/* \ No newline at end of file
+if [ -d /kernels ]; then
+ rm -rf /kernels/*
+fi \ No newline at end of file
OpenPOWER on IntegriCloud