Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv30454/scripts/scripts
Modified Files:
Tag: rel-1-0-patches
pre_init
Log Message:
- added new configuration variable CHANGE_SHMFS_SIZE
to modify the size of the ramdisk ( default is RAM /2 )
Index: pre_init
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- pre_init 29 Sep 2003 13:27:11 -0000 1.6
+++ pre_init 9 Oct 2003 00:15:47 -0000 1.6.2.1
@@ -11,6 +11,9 @@
# used to initialize the devfs
#
+# settings
+source /etc/sysconfig/config
+
#
# Ignore CTRL-C only in this shell, so we can interrupt subprocesses.
#
@@ -36,6 +39,12 @@
echo "Preparing and cleaning shmfs"
rm -rf /shm/lib
mkdir -p /shm/jail
+
+# resize the shmfs
+if [ -n "$CHANGE_SHMFS_SIZE" ]; then
+ echo "Resizing shmfs to $CHANGE_SHMFS_SIZE"
+ mount -o remount,size=$CHANGE_SHMFS_SIZE /shm
+fi
if [ -d /config/etc_files ]; then
if ! cmp -s /shm/etc/Devil-release /config/etc_files/Devil-release
|