#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/hdtune-info - disk information # # Creation : 2018-06-06 holbru # Last update: $Id$ # # Copyright (c) 2018-@@YEAR@@ 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 clrhome mecho --info "hdtune Platten-Information" echo . /etc/config.d/hdtune idx=1 while [ ${idx} -le ${HDTUNE_N} ] do eval device='${HDTUNE_'${idx}'_DEVICE}' eval active='${HDTUNE_'${idx}'_ACTIVE}' if [ "${active}" != "yes" ] then idx=$((${idx} + 1)) continue fi /usr/sbin/hdparm -I /dev/${device} idx=$((${idx} + 1)) done /var/install/bin/anykey