mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use $g['product_name'] instead of pfSense
This commit is contained in:
parent
0ebc8ca1f9
commit
bfaca65530
@ -37,8 +37,9 @@
|
||||
$version = trim(file_get_contents("{$g['etc_path']}/version"));
|
||||
$platform = trim(file_get_contents("{$g['etc_path']}/platform"));
|
||||
$hostname = $config['system']['hostname'];
|
||||
$product = $g['product_name'];
|
||||
|
||||
print "\n*** Welcome to pfSense {$version}-{$platform} on {$hostname} ***\n";
|
||||
print "\n*** Welcome to {$g['product_name]} {$version}-{$platform} on {$hostname} ***\n";
|
||||
|
||||
/* get our initial interface list */
|
||||
$vfaces = array(
|
||||
|
||||
@ -303,7 +303,7 @@
|
||||
|
||||
if($avail < 126) {
|
||||
require_once("/etc/inc/notices.inc");
|
||||
file_notice("pfSenseMemoryRequirements", "pfSense requires atleast 128 megabytes of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
|
||||
file_notice("{$g['product_name]}MemoryRequirements", "{$g['product_name]} requires atleast 128 megabytes of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
|
||||
mwexec("sysctl net.inet.tcp.recvspace=4096");
|
||||
mwexec("sysctl net.inet.tcp.sendspace=4096");
|
||||
}
|
||||
|
||||
@ -8,11 +8,13 @@
|
||||
# Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
||||
# All rights reserved.
|
||||
|
||||
product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
|
||||
|
||||
if [ -e /usr/local/etc/rc.d/dev_bootstrap.sh ]; then
|
||||
echo
|
||||
echo "A developer bootstrap is most likely in progress."
|
||||
echo "This operation bootstraps all developer files from"
|
||||
echo "pfSense.com and also FreeBSD.org and builds a ISO"
|
||||
echo "$product and also FreeBSD.org and builds a ISO"
|
||||
echo "to verify the environment is sane."
|
||||
echo
|
||||
echo "During this process, /usr/src is automatically downloaded"
|
||||
@ -62,7 +64,7 @@ fi
|
||||
# display a cheap menu
|
||||
echo
|
||||
echo
|
||||
echo " pfSense console setup "
|
||||
echo " ${product} console setup "
|
||||
echo "***********************"
|
||||
echo " 0) Logout (SSH only)"
|
||||
echo " 1) Assign Interfaces"
|
||||
@ -76,7 +78,7 @@ echo " 8) Shell"
|
||||
echo " 9) PFtop"
|
||||
echo "10) Filter Logs"
|
||||
echo "11) Restart webConfigurator"
|
||||
echo "12) pfSense PHP shell"
|
||||
echo "12) ${product} PHP shell"
|
||||
echo "13) Upgrade from console"
|
||||
SSHD=`netstat -an | grep "*.22" | wc -l`
|
||||
if [ "$SSHD" -gt 0 ]; then
|
||||
@ -93,7 +95,7 @@ for i in /var/db/pfi/capable_*; do
|
||||
done
|
||||
|
||||
if [ "$PLATFORM" = "cdrom" ]; then
|
||||
echo "99) Install pfSense to a hard drive/memory drive, etc."
|
||||
echo "99) Install ${product} to a hard drive/memory drive, etc."
|
||||
echo
|
||||
fi
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ EOD;
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
pfSense is rebooting now.
|
||||
{$g['product_name']} is rebooting now.
|
||||
|
||||
EOD;
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
pfSense will shutdown and halt system. This may take one minute.
|
||||
{$g['product_name']} will shutdown and halt system. This may take one minute.
|
||||
|
||||
Do you want to proceed [y|n]?
|
||||
EOD;
|
||||
@ -49,7 +49,7 @@ EOD;
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
pfSense will shutdown and halt system now.
|
||||
{$g['product_name']} will shutdown and halt system now.
|
||||
|
||||
EOD;
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
pfSense will reboot. This may take one minute.
|
||||
{$g['product_name']} will reboot. This may take one minute.
|
||||
|
||||
Do you want to proceed [y|n]?
|
||||
EOD;
|
||||
@ -47,7 +47,7 @@ EOD;
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
pfSense is rebooting now.
|
||||
{$g['product_name']} is rebooting now.
|
||||
|
||||
EOD;
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
}
|
||||
} while (!is_ipaddr($lanip));
|
||||
|
||||
echo "\nSubnet masks are entered as bit counts (as in CIDR notation) in pfSense.\n";
|
||||
echo "\nSubnet masks are entered as bit counts (as in CIDR notation) in {$g['product_name']}.\n";
|
||||
echo "e.g. 255.255.255.0 = 24\n";
|
||||
echo " 255.255.0.0 = 16\n";
|
||||
echo " 255.0.0.0 = 8\n\n";
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
echo "\n\n";
|
||||
echo "Enter the device that you wish the";
|
||||
echo "\n";
|
||||
echo "pfSense configuration file to reside on: ";
|
||||
echo "{$g['product_name']} configuration file to reside on: ";
|
||||
$move_config_to_device = chop(fgets($fp));
|
||||
if ($move_config_to_device == "") {
|
||||
exit(0);
|
||||
|
||||
@ -122,7 +122,7 @@ if($old_ip <> "")
|
||||
if($old_ip <> $curwanip) {
|
||||
exec("/etc/rc.start_packages");
|
||||
exec("/etc/rc.start_packages");
|
||||
log_error("pfSense package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
|
||||
log_error("{$g['product_name']} package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
|
||||
}
|
||||
|
||||
/* reload slbd */
|
||||
|
||||
@ -8,9 +8,11 @@ fi
|
||||
if [ -e /dev/ukbd0 ]; then
|
||||
/usr/sbin/vidcontrol -s 2
|
||||
fi
|
||||
|
||||
|
||||
product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
|
||||
|
||||
echo
|
||||
echo "pfSense is now shutting down ..."
|
||||
echo "$product is now shutting down ..."
|
||||
echo
|
||||
|
||||
stty status '^T'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user