summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc2
-rwxr-xr-xetc/rc.firmware_auto2
-rwxr-xr-xetc/rc.initial2
-rwxr-xr-xetc/rc.shutdown2
4 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 5b13aa5..94a726b 100755
--- a/etc/rc
+++ b/etc/rc
@@ -41,7 +41,7 @@ if [ "$PLATFORM" = "pfSense" ]; then
mdmfs -S -M -s 4m md /var/run
fi
-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`
hideplatform=`cat /etc/inc/globals.inc | grep hideplatform | wc -l`
if [ "$hideplatform" -gt "0" ]; then
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
diff --git a/etc/rc.initial b/etc/rc.initial
index a0cd9bc..aafac5b 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -64,7 +64,7 @@ fi
/etc/rc.banner
-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`
hidebanner=`cat /etc/inc/globals.inc | grep hidebanner | cut -d'"' -f4`
# display a cheap menu
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index f6175b4..2dd233c 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -9,7 +9,7 @@ if [ -e /dev/ukbd0 ]; then
/usr/sbin/vidcontrol -s 2
fi
-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`
echo
echo "${product} is now shutting down ..."
OpenPOWER on IntegriCloud