From: Andrea R. <ar...@sy...> - 2006-03-25 17:28:49
|
Author: arighi Date: 2006-03-25 15:35:16 -0600 (Sat, 25 Mar 2006) New Revision: 3478 Modified: trunk/initrd_source/skel/etc/init.d/functions Log: fix: report the correct percentage of the used tmpfs Modified: trunk/initrd_source/skel/etc/init.d/functions =================================================================== --- trunk/initrd_source/skel/etc/init.d/functions 2006-03-25 20:01:40 UTC (rev 3477) +++ trunk/initrd_source/skel/etc/init.d/functions 2006-03-25 21:35:16 UTC (rev 3478) @@ -1483,7 +1483,7 @@ fi # Evaluate the amount of available RAM. - tmpfs=`df | grep tmpfs | sed "s/.* \([0-9]*%\) .*/\1/"` + tmpfs=`df | grep tmpfs | grep "/$" | sed "s/.* \([0-9]*%\) .*/\1/"` # Evaluate the uptime of the client. time=`cat /proc/uptime | sed "s/\..*//"` |