Revision 573ec19d
Added by Renato Botelho over 4 years ago
src/etc/pfSense-rc.shutdown | ||
---|---|---|
25 | 25 |
exit -1 |
26 | 26 |
fi |
27 | 27 |
|
28 |
# Read product_name from $g, defaults to pfSense
|
|
29 |
product=$(/usr/local/sbin/read_global_var product_name pfSense)
|
|
28 |
# Read product_label from $g, defaults to pfSense
|
|
29 |
product_label=$(/usr/local/sbin/read_global_var product_label pfSense)
|
|
30 | 30 |
|
31 | 31 |
echo |
32 |
echo "${product} is now shutting down ..." |
|
32 |
echo "${product_label} is now shutting down ..."
|
|
33 | 33 |
echo |
34 | 34 |
|
35 | 35 |
stty status '^T' |
Also available in: Unified diff
Add product_label global variable
Introduce product_label global variable, by default with same value of
product_name. The idea is to make it easier for rebranded products to
change the name on all visual texts while internal structures are
preserved.
While here, remove deprecated $g['platform'] and also replace places
with pfSense hardcoded on text messages by $g['product_label'].
No functional changes are expected.