summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-28 18:19:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-28 18:19:22 +0000
commit00392a13707f74ceead2ffcd9441c5548bb1e9d1 (patch)
tree86690ced0df3fb510b3087bfcec95fb6a0102490 /etc
parent1939b5cee73df38a7d139ddb7edf924f2e3d819f (diff)
downloadpfsense-00392a13707f74ceead2ffcd9441c5548bb1e9d1.zip
pfsense-00392a13707f74ceead2ffcd9441c5548bb1e9d1.tar.gz
Make $fp global
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial.firmware_update2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update
index e5aa337..711de11 100755
--- a/etc/rc.initial.firmware_update
+++ b/etc/rc.initial.firmware_update
@@ -105,6 +105,7 @@ switch ($command) {
}
function check_for_kernel_file() {
+ global $fp;
if(!file_exists("/boot/kernel/pfsense_kernel.txt")) {
echo "\nPlease select which kernel you would like to use:\n";
echo "\n1. Non SMP kernel";
@@ -132,6 +133,7 @@ function check_for_kernel_file() {
}
function do_upgrade($path) {
+ global $fp;
check_for_kernel_file();
echo "\nOne moment please... Invoking firmware upgrade...\n";
exec("/etc/rc.firmware pfSenseupgrade $path");
OpenPOWER on IntegriCloud