Code: Alles auswählen
root@hone:/etc# update-smart-drivedb
/usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible
Code: Alles auswählen
root@hone:/etc# update-smart-drivedb
/usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible
Code: Alles auswählen
# cat drivedb.h.error
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://sourceforge.net/p/smartmontools/code/">here</a>.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at smartmontools.svn.sourceforge.net Port 50043</address>
</body></html>
$location = "branches/$BRANCH"Code: Alles auswählen
# ViewVC repository browser SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
Code: Alles auswählen
SRCEXPR='http://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'
Code: Alles auswählen
#!/bin/bash
UPDATE=/usr/sbin/update-smart-drivedb
if [ -f "$UPDATE" ]; then
sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $UPDATE
fi