From: <smi...@us...> - 2003-10-09 00:14:12
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv30193/scripts/scripts Modified Files: 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.7 diff -u -d -r1.6 -r1.7 --- pre_init 29 Sep 2003 13:27:11 -0000 1.6 +++ pre_init 9 Oct 2003 00:14:08 -0000 1.7 @@ -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 |