Code Sample |
update_progress 90 FREEMEM="$(awk 'BEGIN{m=0};/MemFree|Cached|SwapFree/{m+=$2};END{print m}' /proc/meminfo)" if [ -z "$INSTALLED" ]; then # Now that any swap partitions/files are mounted, see if we can increase the ramdisk size RAMSIZE="$(expr $FREEMEM \* 4 / 5)" [ -n "$RAMSIZE" ] && mount -o "remount,size=${RAMSIZE}k" /ramdisk fi |