Lines 41-47
Link Here
|
41 |
errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}") |
41 |
errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}") |
42 |
status=$? |
42 |
status=$? |
43 |
case ${errmsg} in |
43 |
case ${errmsg} in |
44 |
*": No medium found") nomed=0;; |
44 |
*": No medium found") nomed=1;; |
45 |
esac |
45 |
esac |
46 |
if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then |
46 |
if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then |
47 |
local conf_var="${device##*/}_args" |
47 |
local conf_var="${device##*/}_args" |