From d58803a8facea2a288adc71d46936e0cd5723b79 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 2 Aug 2007 18:36:00 +0000 Subject: Only zap /kernels directory if it exists --- tmp/post_upgrade_command | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tmp') 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 -- cgit v1.1