From 3b6e12c4022d634638b8223801f96be2916aac04 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 29 Nov 2007 17:22:42 +0000 Subject: Check value of /etc/platform when installing the correct ttys file. Reported-by: Vivek Khera --- tmp/post_upgrade_command | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index e4e41c4..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 @@ -33,3 +38,4 @@ rm -f /root/*.md5 # File moved to pfSense php shell (pfSsh.php) rm -rf /usr/local/sbin/cvs_sync.sh + -- cgit v1.1