Revision 5b6eac01
Added by Scott Ullrich over 16 years ago
etc/inc/interfaces.inc | ||
---|---|---|
58 | 58 |
|
59 | 59 |
function interfaces_vlan_configure() |
60 | 60 |
{ |
61 |
global $config;
|
|
61 |
global $config;
|
|
62 | 62 |
|
63 | 63 |
$i = 0; |
64 |
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) {
|
|
65 |
foreach ($config['vlans']['vlan'] as $vlan) {
|
|
64 |
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) {
|
|
65 |
foreach ($config['vlans']['vlan'] as $vlan) {
|
|
66 | 66 |
if(empty($vlan['vlanif'])) |
67 | 67 |
$vlan['vlanif'] = "vlan{$i}"; |
68 |
/* XXX: Maybe we should report any errors?! */
|
|
69 |
interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']);
|
|
68 |
/* XXX: Maybe we should report any errors?! */
|
|
69 |
interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']);
|
|
70 | 70 |
$i++; |
71 | 71 |
} |
72 |
}
|
|
72 |
}
|
|
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
function interface_vlan_configure($if, $tag, $vlanif = "") |
etc/rc.bootup | ||
---|---|---|
269 | 269 |
|
270 | 270 |
if($avail < 126) { |
271 | 271 |
require_once("/etc/inc/notices.inc"); |
272 |
file_notice("pfSenseMemoryRequirements", "pfSense requires atleast 128 megabytes of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
|
|
272 |
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);
|
|
273 | 273 |
mwexec("sysctl net.inet.tcp.recvspace=4096"); |
274 | 274 |
mwexec("sysctl net.inet.tcp.sendspace=4096"); |
275 | 275 |
} |
etc/rc.initial.defaults | ||
---|---|---|
53 | 53 |
|
54 | 54 |
echo <<<EOD |
55 | 55 |
|
56 |
pfSense is rebooting now.
|
|
56 |
{$g['product_name']} is rebooting now.
|
|
57 | 57 |
|
58 | 58 |
EOD; |
59 | 59 |
|
etc/rc.initial.firmware_update | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<?php |
4 | 4 |
|
5 |
echo "Starting the pfSense console firmware update system"; |
|
6 |
|
|
7 |
echo "."; |
|
8 |
require("globals.inc"); |
|
9 | 5 |
$g['booting'] = true; |
6 |
require("globals.inc"); |
|
7 |
|
|
8 |
echo "Starting the {$g['product_name']} console firmware update system"; |
|
9 |
|
|
10 | 10 |
require("functions.inc"); |
11 | 11 |
echo "."; |
12 | 12 |
require("config.inc"); |
etc/rc.initial.halt | ||
---|---|---|
40 | 40 |
|
41 | 41 |
echo <<<EOD |
42 | 42 |
|
43 |
pfSense will shutdown and halt system. This may take one minute.
|
|
43 |
{$g['product_name']} will shutdown and halt system. This may take one minute.
|
|
44 | 44 |
|
45 | 45 |
Do you want to proceed [y|n]? |
46 | 46 |
EOD; |
... | ... | |
49 | 49 |
|
50 | 50 |
echo <<<EOD |
51 | 51 |
|
52 |
pfSense will shutdown and halt system now.
|
|
52 |
{$g['product_name']} will shutdown and halt system now.
|
|
53 | 53 |
|
54 | 54 |
EOD; |
55 | 55 |
|
etc/rc.initial.reboot | ||
---|---|---|
38 | 38 |
|
39 | 39 |
echo <<<EOD |
40 | 40 |
|
41 |
pfSense will reboot. This may take one minute.
|
|
41 |
{$g['product_name']} will reboot. This may take one minute.
|
|
42 | 42 |
|
43 | 43 |
Do you want to proceed [y|n]? |
44 | 44 |
EOD; |
... | ... | |
47 | 47 |
|
48 | 48 |
echo <<<EOD |
49 | 49 |
|
50 |
pfSense is rebooting now.
|
|
50 |
{$g['product_name']} is rebooting now.
|
|
51 | 51 |
|
52 | 52 |
EOD; |
53 | 53 |
|
etc/rc.initial.store_config_to_removable_device | ||
---|---|---|
51 | 51 |
echo "\n\n"; |
52 | 52 |
echo "Enter the device that you wish the"; |
53 | 53 |
echo "\n"; |
54 |
echo "pfSense configuration file to reside on: ";
|
|
54 |
echo "{$g['product_name']} configuration file to reside on: ";
|
|
55 | 55 |
$move_config_to_device = chop(fgets($fp)); |
56 | 56 |
if ($move_config_to_device == "") { |
57 | 57 |
exit(0); |
etc/rc.newwanip | ||
---|---|---|
111 | 111 |
if($old_ip <> $curwanip) { |
112 | 112 |
mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh"); |
113 | 113 |
exec("/etc/rc.start_packages"); |
114 |
log_error("pfSense package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
|
|
114 |
log_error("{$g['product_name']} package system has detected an ip change $old_ip -> $curwanip ... Restarting packages.");
|
|
115 | 115 |
} |
116 | 116 |
} |
117 | 117 |
|
... | ... | |
119 | 119 |
setup_gateways_monitor(); |
120 | 120 |
|
121 | 121 |
return 0; |
122 |
?> |
|
122 |
?> |
etc/sshd | ||
---|---|---|
138 | 138 |
|
139 | 139 |
if (!file_exists("$sshConfigDir/ssh_host_key") or file_exists("/etc/keys_generating")) { |
140 | 140 |
/* remove previous keys and regen later */ |
141 |
file_notice("SSH", "pfSense has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.", "SSH KeyGen", "");
|
|
141 |
file_notice("SSH", "{$g['product_name']} has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.", "SSH KeyGen", "");
|
|
142 | 142 |
conf_mount_rw(); |
143 | 143 |
mwexec("rm /etc/ssh/ssh_host_*"); |
144 | 144 |
touch("/etc/keys_generating"); |
... | ... | |
149 | 149 |
system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t dsa -N '' -f $sshConfigDir/ssh_host_dsa_key"); |
150 | 150 |
unlink("/etc/keys_generating"); |
151 | 151 |
unlink("/tmp/keys_generating"); |
152 |
file_notice("SSH", "pfSense has completed creating your SSH keys. SSH is now started.", "SSH Startup", "");
|
|
152 |
file_notice("SSH", "{$g['product_name']} has completed creating your SSH keys. SSH is now started.", "SSH Startup", "");
|
|
153 | 153 |
echo "Starting SSH... "; |
154 | 154 |
} |
155 | 155 |
|
Also available in: Unified diff
Use product_name