summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/netctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netctl b/src/netctl
index 7cf0b59..2324ec9 100755
--- a/src/netctl
+++ b/src/netctl
@@ -89,6 +89,7 @@ unit_enable() {
echo -e "\n[Unit]" >> "$unit"
[[ -n $Description ]] && echo "Description=$Description" >> "$unit"
: ${BindsToInterfaces=$Interface}
+ BindsToInterfaces=( "${BindsToInterfaces[@]//-/\\x2d}" )
printf 'BindsTo=sys-subsystem-net-devices-%s.device\n' \
"${BindsToInterfaces[@]}" >> "$unit"
printf 'After=sys-subsystem-net-devices-%s.device\n' \