Revision: 7341 http://sourceforge.net/p/ipcop/svn/7341 Author: owes Date: 2014-03-18 06:47:50 +0000 (Tue, 18 Mar 2014) Log Message: ----------- During development of 2.1 we lowered max swapfile size, adjust older installations to match.
Modified Paths: -------------- ipcop/trunk/src/rc.d/rc.sysinit ipcop/trunk/updates/2.1.3/ROOTFILES.i486-2.1.3 Modified: ipcop/trunk/src/rc.d/rc.sysinit =================================================================== --- ipcop/trunk/src/rc.d/rc.sysinit 2014-03-17 06:57:10 UTC (rev 7340) +++ ipcop/trunk/src/rc.d/rc.sysinit 2014-03-18 06:47:50 UTC (rev 7341) @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with IPCop. If not, see <http://www.gnu.org/licenses/>. # -# (c) 2001-2012, the IPCop team +# (c) 2001-2014, the IPCop team # # $Id$ # @@ -199,6 +199,16 @@ test_ok if [ -e /swapfile ]; then + SWAPSIZE=`/usr/bin/stat -c%s /swapfile` + if [ $SWAPSIZE -gt 140000000 ]; then + # During 2.1 development max swap was decreased. Adjust older installations. + echo -ne "Shrinking swapfile. This may take several minutes ... " + /bin/dd if=/dev/zero of=/swapfile bs=1024k count=128 2>/dev/null + test_ok + echo -ne "Set up swapfile ... " + /sbin/mkswap /swapfile >/dev/null + test_ok + fi echo -ne "Turning on swap ... " /bin/chmod 600 /swapfile /sbin/swapon /swapfile Modified: ipcop/trunk/updates/2.1.3/ROOTFILES.i486-2.1.3 =================================================================== --- ipcop/trunk/updates/2.1.3/ROOTFILES.i486-2.1.3 2014-03-17 06:57:10 UTC (rev 7340) +++ ipcop/trunk/updates/2.1.3/ROOTFILES.i486-2.1.3 2014-03-18 06:47:50 UTC (rev 7341) @@ -1,5 +1,6 @@ ## please place IPCop files first, then packages sorted by alphabetical order /etc/profile +/etc/rc.d/rc.sysinit /home/httpd/cgi-bin/logproxy.cgi /home/httpd/cgi-bin/proxy.cgi /home/httpd/cgi-bin/updates.cgi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn