Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12212/scripts/scripts
Modified Files:
Tag: rel-1-2-patches
pre_init save-config
Log Message:
- DL now works fine again on 32 MB systems
- unpacking of /var now uses less memory during uncompression
- save-config now uses less memory during compression
- removed squidguard blacklist
(has to be freshly downloaded anyway)
- removed clamav virus signatures
(has to be freshly downloaded anyway)
Index: pre_init
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v
retrieving revision 1.19.2.1
retrieving revision 1.19.2.2
diff -u -d -r1.19.2.1 -r1.19.2.2
--- pre_init 22 Aug 2004 13:42:29 -0000 1.19.2.1
+++ pre_init 6 Sep 2004 14:40:32 -0000 1.19.2.2
@@ -69,7 +69,7 @@
# unpack /var to the shmfs
echo "Unpacking /var"
-tar -C /shm/ -xjf /config/var.tar.bz2
+bunzip2 -s -c /config/var.tar.bz2 | tar -C /shm/ -x
if [ -d /config/etc_files ]; then
if ! cmp -s /shm/etc/Devil-release /config/etc_files/Devil-release
Index: save-config
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/save-config,v
retrieving revision 1.29
retrieving revision 1.29.2.1
diff -u -d -r1.29 -r1.29.2.1
--- save-config 22 May 2004 22:29:33 -0000 1.29
+++ save-config 6 Sep 2004 14:40:32 -0000 1.29.2.1
@@ -208,7 +208,7 @@
echo "Saving current configuration"
$NORMAL
-tar -C /shm -cjf $CONFIG_MOUNT/$DL_CONFIG_FILE \
+tar -C /shm -c \
--exclude=*~ \
--exclude=mtab \
--exclude=*.2.old \
@@ -220,7 +220,7 @@
--exclude=*.8.old \
--exclude=*.9.old \
--exclude=dhcpcd-eth*.pid \
- etc root
+ etc root -f - | bzip2 -s -c > $CONFIG_MOUNT/$DL_CONFIG_FILE
error=$?
|