Mask : in device ids

This commit is contained in:
layman 2016-05-28 00:24:17 +02:00
parent cfea545183
commit 60dfb28a5f

2
sys-apps/hdparm/files/hdparm-init-9 Normal file → Executable file
View File

@ -53,7 +53,7 @@ scan_nondevfs() {
# we replace all dashes by underscores
for alias in /dev/disk/by-id/* ; do
if [ "${alias}" -ef "${device}" ] ; then
eval args_tmp=\$"$(basename "${alias}" | sed 's/-/_/g')"_args
eval args_tmp=\$"$(basename "${alias}" | sed -e 's/-/_/g' -e 's/:/_/g')"_args
if [ -n "${args_tmp}" ]; then
args="${args_tmp}"
fi