Skip to main content

How to update smartctl database with Debian Wheezy

·36 words·1 min

How to update smartctl database with Debian Wheezy
#

You’ll have to create run these commands :

#!/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

before running update-smart-drivedb

Source :