summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.reboot
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc.reboot')
-rwxr-xr-xsrc/etc/rc.reboot13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/etc/rc.reboot b/src/etc/rc.reboot
index 1dae0d2..00169bf 100755
--- a/src/etc/rc.reboot
+++ b/src/etc/rc.reboot
@@ -9,17 +9,8 @@ fi
sleep 1
-globals_inc="/etc/inc/globals.inc"
-if [ -f /etc/inc/globals_override.inc ]; then
- globals_inc="/etc/inc/globals_override.inc ${globals_inc}"
-fi
-product=$(cat ${globals_inc} | \
- grep product_name | \
- head -n 1 | \
- sed 's/^.*=>* *//; s/["\;,]*//g')
-
-# product cannot be blank
-product=${product:-"pfSense"}
+# Read product_name from $g, defaults to pfSense
+product=$(/usr/local/sbin/read_global_var product_name pfSense)
# If PLATFORM is $product then remove
# temporary files on shutdown from /tmp/
OpenPOWER on IntegriCloud