diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-02 18:36:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-02 18:36:00 +0000 |
commit | d58803a8facea2a288adc71d46936e0cd5723b79 (patch) | |
tree | d6c04a3865367bcf02403a716f3547c944159067 /tmp | |
parent | 8dd92eaee8dda671816e743400ddbed5ac2a7a5b (diff) | |
download | pfsense-d58803a8facea2a288adc71d46936e0cd5723b79.zip pfsense-d58803a8facea2a288adc71d46936e0cd5723b79.tar.gz |
Only zap /kernels directory if it exists
Diffstat (limited to 'tmp')
-rwxr-xr-x | tmp/post_upgrade_command | 4 |
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 |