mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Remove ramdisks for RRD databases
Ramdisks are very limited in space and as new graphs are generated for OpenVPN N2N connections, etc. more space is necessary. This patch will enable ramdisks for all systems with more than 490M of memory and allows the user to force using a ramdisk on systems with less memory. Signed-off-by: Alexander Marx <alexander.marx@ipfire.org> Acked-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
74e5c32e19
commit
c4a451eead
@@ -61,6 +61,9 @@ $(TARGET) :
|
||||
-rm -rf /etc/init.d
|
||||
ln -svf rc.d/init.d /etc/init.d
|
||||
|
||||
#create ramdiskfile to force ramdiskcreation if FORCE=1
|
||||
echo "FORCE=0" > /etc/sysconfig/ramdisk
|
||||
|
||||
for i in $(DIR_SRC)/src/initscripts/init.d/*; do \
|
||||
install -v -m 754 $$i /etc/rc.d/init.d/; \
|
||||
done
|
||||
@@ -128,9 +131,6 @@ $(TARGET) :
|
||||
ln -sf ../init.d/random /etc/rc.d/rc3.d/S25random
|
||||
ln -sf ../init.d/random /etc/rc.d/rc6.d/K45random
|
||||
ln -sf ../../sysconfig/rc.local /etc/rc.d/rc3.d/S98rc.local
|
||||
ln -sf ../init.d/tmpfs /etc/rc.d/rc0.d/K85tmpfs
|
||||
ln -sf ../init.d/tmpfs /etc/rc.d/rc3.d/S01tmpfs
|
||||
ln -sf ../init.d/tmpfs /etc/rc.d/rc6.d/K85tmpfs
|
||||
ln -sf ../init.d/mediatomb /etc/rc.d/rc3.d/S98mediatomb
|
||||
ln -sf ../init.d/mediatomb /etc/rc.d/rc0.d/K02mediatomb
|
||||
ln -sf ../init.d/mediatomb /etc/rc.d/rc6.d/K02mediatomb
|
||||
@@ -178,6 +178,9 @@ $(TARGET) :
|
||||
ln -sf ../init.d/firewall /etc/rc.d/rcsysinit.d/S85firewall
|
||||
ln -sf ../init.d/network-trigger /etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
ln -sf ../init.d/rngd /etc/rc.d/rcsysinit.d/S92rngd
|
||||
ln -sf ../init.d/vnstat /etc/rc.d/rc3.d/S01vnstat
|
||||
ln -sf ../init.d/vnstat /etc/rc.d/rc0.d/K51vnstat
|
||||
ln -sf ../init.d/vnstat /etc/rc.d/rc6.d/K51vnstat
|
||||
ln -sf ../init.d/wlanclient /etc/rc.d/rc0.d/K82wlanclient
|
||||
ln -sf ../init.d/wlanclient /etc/rc.d/rc3.d/S19wlanclient
|
||||
ln -sf ../init.d/wlanclient /etc/rc.d/rc6.d/K82wlanclient
|
||||
|
||||
@@ -76,6 +76,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && make all $(MAKETUNING) LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"
|
||||
cd $(DIR_APP) && make install
|
||||
sed -i 's|eth0|green0|g' /etc/vnstat.conf
|
||||
sed -i 's|/var/lib/vnstat|/var/log/rrd/vnstat|g' /etc/vnstat.conf
|
||||
sed -i 's|/var/lib/vnstat|/var/log/vnstat|g' /etc/vnstat.conf
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user