Skip to content
Snippets Groups Projects
Commit 143799c4 authored by (no author)'s avatar (no author)
Browse files

This commit was manufactured by cvs2svn to create tag

'RELEASE_5_0_26'.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/tags/RELEASE_5_0_26@192 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 6a897d24
Branches
Tags
No related merge requests found
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
# execute this script in the current shell, using for example
# . cvs_script
unset CVS_SERVER
export CVS_RSH=ssh
export CVSROOT=:ext:ballen4705@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
This diff is collapsed.
#! /bin/bash
# This is a script to wrap smartctl output into http:// displayable form
# It requires a filename as input, and produces an file with a .html extension as output
if [ $# -ne 1 ] ; then
echo This script requires one a file as input
exit 1
fi
model=`grep "Device Model" $1 | awk '{print $3}' `
# see if file name in use
let i=0
while [ -f $model-$i.html ] ; do
let i+=1
done
filename=$model-$i
echo -e "<pre><tt>\n" > $filename.html
cat $1 >> $filename.html
echo -e "</tt></pre>\n" >> $filename.html
echo created file $filename.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment