summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware_auto
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2009-08-03 16:52:51 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2009-08-03 16:52:51 -0300
commit07881462254d007cf77c1a5b09e7a840f708657e (patch)
tree6d70c8a6e9612e9a91ed91119b7849852c6c088c /etc/rc.firmware_auto
parent0ba45a7917dea4c0996e8d2f4fe9bb3798b8acc4 (diff)
downloadpfsense-07881462254d007cf77c1a5b09e7a840f708657e.zip
pfsense-07881462254d007cf77c1a5b09e7a840f708657e.tar.gz
Use php to detect product name on shell scripts
Diffstat (limited to 'etc/rc.firmware_auto')
-rwxr-xr-xetc/rc.firmware_auto2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto
index be5da91..6dab193 100755
--- a/etc/rc.firmware_auto
+++ b/etc/rc.firmware_auto
@@ -6,7 +6,7 @@ FMBASEURL=$1
FMFILENAME=$2
FETCHFILENAME=$1/$2
-product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
+product=`echo '<? include("/etc/inc/globals.inc"); die($g["product_name"]); ?>' | /usr/local/bin/php -q`
# wait 5 seconds before beginning
sleep 5
OpenPOWER on IntegriCloud