This script is full of bashisms (for example: local).

--- smartmontools-7.3/update-smart-drivedb.in.orig
+++ smartmontools-7.3/update-smart-drivedb.in
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # smartmontools drive database update script
 #