diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-02 18:31:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-02 18:31:25 +0000 |
commit | 8dd92eaee8dda671816e743400ddbed5ac2a7a5b (patch) | |
tree | aefc79ddd5405513be9e684e1501ba874b7b4023 /tmp | |
parent | ee1b024ea938c0df466d48136958a7f3aee3ed84 (diff) | |
download | pfsense-8dd92eaee8dda671816e743400ddbed5ac2a7a5b.zip pfsense-8dd92eaee8dda671816e743400ddbed5ac2a7a5b.tar.gz |
* Ensure source kernel exists before blindly copying
* Move embedded ttys back into place after upgrade
Diffstat (limited to 'tmp')
-rwxr-xr-x | tmp/post_upgrade_command | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index 7ac65b2..6c96abc 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -10,12 +10,19 @@ rm /var/run/config.lock KERNELTYPE=`cat /boot/kernel/pfsense_kernel.txt` if [ $KERNELTYPE = "wrap" ]; then - cp /kernels/kernel_SMP.gz /boot/kernel/kernel.gz + if [ -f /kernels/kernel_wrap.gz ]; then + cp /kernels/kernel_wrap.gz /boot/kernel/kernel.gz + cp /etc/ttys_wrap /etc/ttys + fi fi if [ $KERNELTYPE = "Developers" ]; then - cp /kernels/kernel_Dev.gz /boot/kernel/kernel.gz + if [ -f /kernels/kernel_Dev.gz ]; then + cp /kernels/kernel_Dev.gz /boot/kernel/kernel.gz + fi fi if [ $KERNELTYPE = "SMP" ]; then - cp /kernels/kernel_SMP.gz /boot/kernel/kernel.gz + if [ -f /kernels/kernel_SMP.gz ]; then + cp /kernels/kernel_SMP.gz /boot/kernel/kernel.gz + fi fi rm -rf /kernels/*
\ No newline at end of file |