From 60dfb28a5f101f1befc66b116a1760f9c6ad01e6 Mon Sep 17 00:00:00 2001 From: layman Date: Sat, 28 May 2016 00:24:17 +0200 Subject: [PATCH] Mask : in device ids --- sys-apps/hdparm/files/hdparm-init-9 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 sys-apps/hdparm/files/hdparm-init-9 diff --git a/sys-apps/hdparm/files/hdparm-init-9 b/sys-apps/hdparm/files/hdparm-init-9 old mode 100644 new mode 100755 index 3869fa2..1549029 --- a/sys-apps/hdparm/files/hdparm-init-9 +++ b/sys-apps/hdparm/files/hdparm-init-9 @@ -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