summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-29 17:22:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-29 17:22:42 +0000
commit3b6e12c4022d634638b8223801f96be2916aac04 (patch)
treee26989434679cc313bc08460480630b8c0879aa6 /tmp/post_upgrade_command
parent2672d65db36b22a300ad519012f0f9c831efa32a (diff)
downloadpfsense-3b6e12c4022d634638b8223801f96be2916aac04.zip
pfsense-3b6e12c4022d634638b8223801f96be2916aac04.tar.gz
Check value of /etc/platform when installing the correct ttys file.
Reported-by: Vivek Khera
Diffstat (limited to 'tmp/post_upgrade_command')
-rwxr-xr-xtmp/post_upgrade_command6
1 files changed, 6 insertions, 0 deletions
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
+
OpenPOWER on IntegriCloud