Skip to content

Commit

Permalink
always print file system usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 27, 2016
1 parent 4bb9ec4 commit f1f1832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/subroutines
Expand Up @@ -1086,15 +1086,17 @@ task_instsoft() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_finish() {

mkramdisk -au # umount ramdisk
if [ $do_init_tasks -eq 1 ] ; then
# show some local information
df -PTh | egrep ':|^/|^Filesystem'
# show rx and tx bytes of network device
grep . /sys/class/net/*/statistics/*x_bytes | perl -ane 'm#/sys/class/net/(.+)/statistics/(.+):(\d+)# && ($3) && ($1 ne lo) && printf "%s %s %.2f Mbytes\n",$1,$2,$3/1000000 '
swapoff -a
else
df -PTh | egrep "^Filesystem|$target"
fi

mkramdisk -au # umount ramdisk
# undo fake of all programs made by fai
fai-divert -R
rm -f $FAI_ROOT/etc/apt/apt.conf.d/{10,90}fai
Expand Down

0 comments on commit f1f1832

Please sign in to comment.