diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2009-08-03 16:52:51 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2009-08-03 16:52:51 -0300 |
commit | 07881462254d007cf77c1a5b09e7a840f708657e (patch) | |
tree | 6d70c8a6e9612e9a91ed91119b7849852c6c088c /etc/rc.shutdown | |
parent | 0ba45a7917dea4c0996e8d2f4fe9bb3798b8acc4 (diff) | |
download | pfsense-07881462254d007cf77c1a5b09e7a840f708657e.zip pfsense-07881462254d007cf77c1a5b09e7a840f708657e.tar.gz |
Use php to detect product name on shell scripts
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-x | etc/rc.shutdown | 2 |
1 files changed, 1 insertions, 1 deletions
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 ..." |