summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-29 13:59:59 -0400
committerjim-p <jimp@pfsense.org>2010-07-29 14:03:19 -0400
commitbf07217998ed65da6f9aea2d1a2db2f078202731 (patch)
treea357255daee4116d393f9bcf9dec1aef2067c186 /etc/rc.bootup
parent439b0e26bc443b208f5112d348a4621bab25e14e (diff)
downloadpfsense-bf07217998ed65da6f9aea2d1a2db2f078202731.zip
pfsense-bf07217998ed65da6f9aea2d1a2db2f078202731.tar.gz
Save the old shutdown binary in an attempt to smooth a firmware upgrade that crosses to/from 32/64-bit.
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 408949a..a433568 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -372,6 +372,10 @@ upnp_start();
/* If powerd is enabled, lets launch it */
activate_powerd();
+/* Remove the old shutdown binary if we kept it. */
+if (file_exists("/sbin/shutdown.old"))
+ unlink("/sbin/shutdown.old");
+
/* done */
unset($g['booting']);
OpenPOWER on IntegriCloud