Project

General

Profile

« Previous | Next » 

Revision 483e6de8

Added by Scott Ullrich over 15 years ago

Rework includes/require. This saves about 4 megabytes.
Simplify get_memory(). Tested on mips/i386

View differences:

etc/rc.bootup
85 85
echo "Initializing...";
86 86
echo ".";
87 87
require_once("/etc/inc/globals.inc");
88
echo ".";
88 89
require_once("/etc/inc/led.inc");
89 90
led_normalize();
91
echo ".";
90 92
if (led_count() >= 3) {
91 93
	led_kitt();
92 94
}
93
echo ".";
95

  
94 96
/* let the other functions know we're booting */
95 97
$pkg_interface = 'console';
96 98
$g['booting'] = true;
......
106 108
echo ".";
107 109
require_once("/etc/inc/functions.inc");
108 110
echo ".";
111
require_once("/etc/inc/ipsec.inc");
112
echo ".";
113
require_once("/etc/inc/vpn.inc");
114
echo ".";
109 115
require_once("openvpn.inc");
110 116
echo ".";
117
require_once("/etc/inc/captiveportal.inc");
118
echo ".";
119
require_once("/etc/inc/rrd.inc");
120
echo ".";
111 121

  
112 122
/* get system memory amount */
113 123
$memory = get_memory();

Also available in: Unified diff