summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-02 18:36:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-02 18:36:00 +0000
commitd58803a8facea2a288adc71d46936e0cd5723b79 (patch)
treed6c04a3865367bcf02403a716f3547c944159067 /tmp
parent8dd92eaee8dda671816e743400ddbed5ac2a7a5b (diff)
downloadpfsense-d58803a8facea2a288adc71d46936e0cd5723b79.zip
pfsense-d58803a8facea2a288adc71d46936e0cd5723b79.tar.gz
Only zap /kernels directory if it exists
Diffstat (limited to 'tmp')
-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