Skip to content
Snippets Groups Projects
Commit 802d2818 authored by chrfranke's avatar chrfranke
Browse files

Release 6.6 RELEASE_6_6

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/tags/RELEASE_6_6@4594 4ea69e1a-61f1-4043-bf83-b5c94c648137
parents
No related branches found
No related tags found
No related merge requests found
Showing
with 208 additions and 0 deletions
#!/bin/sh
# $Id$
#
# Generate ./configure from configure.ac and Makefile.in from Makefile.am.
# This also adds files like missing,depcomp,install-sh to the source
# directory. To update these files at a later date use:
# autoreconf -f -i -v
force=; warnings=
while [ $# -gt 0 ]; do case $1 in
--force) force=$1; shift ;;
--warnings=?*) warnings="${warnings} $1"; shift ;;
*) echo "Usage: $0 [--force] [--warnings=CATEGORY ...]"; exit 1 ;;
esac; done
# Cygwin?
test -x /usr/bin/uname && /usr/bin/uname | grep -i CYGWIN >/dev/null &&
{
# Check for Unix text file type
echo > dostest.tmp
test "`wc -c < dostest.tmp`" -eq 1 ||
echo "Warning: DOS text file type set, 'make dist' and related targets will not work."
rm -f dostest.tmp
}
# Find automake
if [ -n "$AUTOMAKE" ]; then
ver=$("$AUTOMAKE" --version) || exit 1
else
maxver=
for v in 1.15 1.14 1.13 1.12 1.11 1.10; do
minver=$v; test -n "$maxver" || maxver=$v
ver=$(automake-$v --version 2>/dev/null) || continue
AUTOMAKE="automake-$v"
break
done
if [ -z "$AUTOMAKE" ]; then
echo "GNU Automake $minver (up to $maxver) is required to bootstrap smartmontools from SVN."
exit 1;
fi
fi
ver=$(echo "$ver" | sed -n '1s,^.*[^.0-9]\([12]\.[0-9][-.0-9pl]*\).*$,\1,p')
if [ -z "$ver" ]; then
echo "$AUTOMAKE: Unable to determine automake version."
exit 1
fi
# Check aclocal
if [ -z "$ACLOCAL" ]; then
ACLOCAL="aclocal$(echo "$AUTOMAKE" | sed -n 's,^.*automake\(-[.0-9]*\),\1,p')"
fi
"$ACLOCAL" --version >/dev/null || exit 1
# Warn if Automake version was not tested
amwarnings=$warnings
case "$ver" in
1.10|1.10.[123]|1.11|1.11.[1-6]|1.12.[2-6]|1.13.[34])
# OK
;;
1.14|1.14.1|1.15|1.15.1)
# TODO: Enable 'subdir-objects' in configure.ac
# For now, suppress 'subdir-objects' forward-incompatibility warning
test -n "$warnings" || amwarnings="--warnings=no-unsupported"
;;
*)
echo "Note: GNU Automake version ${ver} was not tested by the developers."
echo "Please report success/failure to the smartmontools-support mailing list."
esac
# required for aclocal-1.10 --install
test -d m4 || mkdir m4 || exit 1
set -e # stops on error status
test -z "$warnings" || set -x
${ACLOCAL} -I m4 --install $force $warnings
autoheader $force $warnings
${AUTOMAKE} --add-missing --copy ${force:+--force-missing} $amwarnings
autoconf $force $warnings
This diff is collapsed.
#ifndef CCISS_H_
#define CCISS_H_
#define CCISS_H_CVSID "$Id: cciss.h,v 1.1 2007/04/01 16:49:46 shattered Exp $\n"
int cciss_io_interface(int device, int target,
struct scsi_cmnd_io * iop, int report);
#endif /* CCISS_H_ */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* dev_ata_cmd_set.h
*
* Home page of code is: http://www.smartmontools.org
*
* Copyright (C) 2008 Christian Franke
*
* 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, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef DEV_ATA_CMD_SET_H
#define DEV_ATA_CMD_SET_H
#define DEV_ATA_CMD_SET_H_CVSID "$Id$"
#include "atacmds.h" // smart_command_set
#include "dev_interface.h"
/////////////////////////////////////////////////////////////////////////////
// ata_device_with_command_set
/// Adapter class to implement new ATA pass through old interface.
class ata_device_with_command_set
: public /*implements*/ ata_device
{
public:
/// ATA pass through mapped to ata_command_interface().
virtual bool ata_pass_through(const ata_cmd_in & in, ata_cmd_out & out);
protected:
/// Old ATA interface called by ata_pass_through()
virtual int ata_command_interface(smart_command_set command, int select, char * data) = 0;
ata_device_with_command_set()
: smart_device(never_called) { }
};
#endif // DEV_ATA_CMD_SET_H
This diff is collapsed.
/*
* dev_intelliprop.h
*
* Home page of code is: http://www.smartmontools.org
*
* Copyright (C) 2012 Hank Wu <hank@areca.com.tw>
*
* 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, or (at your option)
* any later version.
*
* You should have received a copy of the GNU General Public License
* (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef DEV_INTELLIPROP_H
#define DEV_INTELLIPROP_H
#define DEV_INTELLIPROP_H_CVSID "$Id$"
ata_device * get_intelliprop_device(smart_interface * intf, unsigned phydrive, ata_device * atadev);
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#! /bin/sh
#
# This is a script from the smartmontools examplescripts/ directory.
# It can be used as an argument to the -M exec Directive in
# /etc/smartd.conf, in a line like
# -m root@localhost -M exec /path/to/this/file
#
# Please see man 8 smartd or man 5 smartd.conf for further
# information.
#
# $Id$
# Save standard input into a temp file
cat > /root/tempfile
# Echo command line arguments into temp file
echo "Command line argument 1:" >> /root/tempfile
echo $1 >> /root/tempfile
echo "Command line argument 2:" >> /root/tempfile
echo $2 >> /root/tempfile
echo "Command line argument 3:" >> /root/tempfile
echo $3 >> /root/tempfile
# Echo environment variables into a temp file
echo "Variables are": >> /root/tempfile
echo "$SMARTD_DEVICE" >> /root/tempfile
echo "$SMARTD_DEVICESTRING" >> /root/tempfile
echo "$SMARTD_DEVICETYPE" >> /root/tempfile
echo "$SMARTD_MESSAGE" >> /root/tempfile
echo "$SMARTD_FULLMESSAGE" >> /root/tempfile
echo "$SMARTD_ADDRESS" >> /root/tempfile
echo "$SMARTD_SUBJECT" >> /root/tempfile
echo "$SMARTD_TFIRST" >> /root/tempfile
echo "$SMARTD_TFIRSTEPOCH" >> /root/tempfile
# Run smartctl -a and save output in temp file
/usr/sbin/smartctl -a -d $SMARTD_DEVICETYPE $SMARTD_DEVICE >> /root/tempfile
# Email the contents of the temp file. Solaris and
# other OSes may need to use /usr/bin/mailx below.
/usr/bin/mail -s "SMART errors detected on host: `hostname`" $SMARTD_ADDRESS < /root/tempfile
# And exit
exit 0
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment