summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-16 07:33:12 -0500
committerRenato Botelho <garga@FreeBSD.org>2015-06-16 07:34:24 -0500
commit8f102b09102f73a83e4cae25901fc1c3ce395c5c (patch)
tree8a03527c691936bef7902795b9896ab8f2672e53 /tmp
parent86bc5c1a2d6815a5c4e9f7c6cd60a21ea27c145c (diff)
downloadpfsense-8f102b09102f73a83e4cae25901fc1c3ce395c5c.zip
pfsense-8f102b09102f73a83e4cae25901fc1c3ce395c5c.tar.gz
Check also for old FreeBSD release versions
Diffstat (limited to 'tmp')
-rw-r--r--tmp/pre_upgrade_command2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command
index 5547b70..435b3dc 100644
--- a/tmp/pre_upgrade_command
+++ b/tmp/pre_upgrade_command
@@ -13,7 +13,7 @@ echo $PRIOR_VERSION > /tmp/pre_upgrade_version
/usr/bin/sed -i '' 's/^\(\/.*[[:space:]]*\/[[:space:]]*ufs[[:space:]]*\)rw\([[:space:]]*[[:digit:]][[:space:]]*[[:digit:]]\)$/\1rw,sync\2/' /etc/fstab
# Hack to workaround ticket #3749
-if [ "${PRIOR_VERSION}" = "8" ] && grep -q 'sh /etc/rc.reboot' /etc/rc.firmware; then
+if [ ${PRIOR_VERSION} -le 8 ] && grep -q 'sh /etc/rc.reboot' /etc/rc.firmware; then
PROC=$(ps axwww | grep '/etc/rc.firmware *pfSenseupgrade')
PID=''
IMG=''
OpenPOWER on IntegriCloud