--- hdparm-init-8.orig 2016-05-18 08:38:34.000000000 +0200 +++ hdparm-init-8 2017-02-11 17:28:45.132466031 +0100 @@ -41,7 +41,7 @@ errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}") status=$? case ${errmsg} in - *": No medium found") nomed=0;; + *": No medium found") nomed=1;; esac if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then local conf_var="${device##*/}_args"