#! /bin/sh #---------------------------------------------------------------------------- # /var/install/bin/system-filesystems-list - list filesystems # # Copyright (c) 2004 Frank Meyer # # Creation: 24.07.2004 fm # Last Update: $Id$ # # 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. #---------------------------------------------------------------------------- gotoyx () { echo -e "\033[$1;$2H\c"; } clrhome /usr/local/bin/colecho "List filesystems" gn echo echo echo printf " %-12s %-10s %-10s %-28s %-4s %s\\n" "spec" "file" "vfstype" "mntopts" "freq" "passno" echo ' ---------------------------------------------------------------------------' while read line do set -- $line fs_spec=$1 fs_file=$2 fs_vfstype=$3 fs_mntopts=$4 fs_freq=$5 fs_passno=$6 printf " %-12s %-10s %-10s %-28s %-4s %s\\n" "$fs_spec" "$fs_file" "$fs_vfstype" "$fs_mntopts" "$fs_freq" "$fs_passno" done