#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/system-filesystems-list - list filesystems # # Creation : 2004-07-24 fm # Last Update: $Id$ # # Copyright (c) 2005-2008 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /var/install/include/eislib tty=`tty` filesystem_header () { clrhome mecho -info "List filesystems" echo techo row "" -info spec -info file -info vfstype -info mntopts -info freq -info pass row=4 echo ' ---------------------------------------------------------------------------' } techo begin '2 13 11 10 32 5 5' cat /etc/fstab | ( filesystem_header while read line do set -- $line if `echo $1 | grep -qs UUID=` then fs_spec=`blkid -t $1 | awk 'BEGIN { RS=""; FS="\n" } { print $NF }' | awk '{ print $1 }' | sed -e 's#:$##'` else fs_spec=$1 fi fs_file=$2 fs_vfstype=$3 fs_mntopts=$4 fs_freq=$5 fs_passno=$6 techo row "" $fs_spec $fs_file $fs_vfstype $fs_mntopts $fs_freq $fs_passno row=`expr $row + 1` refresh_screensize if [ $row = `expr "${_EISLIB_SCREENSIZE_Y}" - 7` ] then echo echo anykey <$tty filesystem_header fi done ) techo end echo echo anykey