summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-29 17:22:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-29 17:22:35 +0000
commitc366571603e6fd92846207340d797eb2ec9a898b (patch)
tree9aa9a8a44d899d33375e192f8524b2190c1757e3 /tmp
parente8be632befd60c18287a3835dae88e04bd3d7423 (diff)
downloadpfsense-c366571603e6fd92846207340d797eb2ec9a898b.zip
pfsense-c366571603e6fd92846207340d797eb2ec9a898b.tar.gz
Check value of /etc/platform when installing the correct ttys file.
Reported-by: Vivek Khera
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index 132f8da..e866144 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -3,6 +3,11 @@
touch /var/run/config.lock
/etc/rc.conf_mount_rw
+PFSENSETYPE=`cat /etc/platform`
+if [ $PFSENSETYPE = "embedded" ]; then
+ cp /etc/ttys_wrap /etc/ttys
+fi
+
KERNELTYPE=`cat /boot/kernel/pfsense_kernel.txt`
if [ $KERNELTYPE = "wrap" ]; then
if [ -f /kernels/kernel_wrap.gz ]; then
OpenPOWER on IntegriCloud