From 92a5e926f38d490ebd603da4ae002736007574cb Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 26 Aug 2009 10:45:30 -0300 Subject: Revert "Use php to detect product name on shell scripts" This reverts commit 07881462254d007cf77c1a5b09e7a840f708657e. --- etc/rc | 2 +- etc/rc.firmware_auto | 2 +- etc/rc.initial | 2 +- etc/rc.shutdown | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/rc b/etc/rc index 16de69a..da1ba3a 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=`echo '' | /usr/local/bin/php -q` +product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` 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 6dab193..be5da91 100755 --- a/etc/rc.firmware_auto +++ b/etc/rc.firmware_auto @@ -6,7 +6,7 @@ FMBASEURL=$1 FMFILENAME=$2 FETCHFILENAME=$1/$2 -product=`echo '' | /usr/local/bin/php -q` +product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` # wait 5 seconds before beginning sleep 5 diff --git a/etc/rc.initial b/etc/rc.initial index aafac5b..a0cd9bc 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -64,7 +64,7 @@ fi /etc/rc.banner -product=`echo '' | /usr/local/bin/php -q` +product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` 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 2dd233c..f6175b4 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=`echo '' | /usr/local/bin/php -q` +product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4` echo echo "${product} is now shutting down ..." -- cgit v1.1