From 048e28f0d4e8adb0ee18a8f07aabe5de221f33e3 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 22 May 2020 17:29:18 +0200 Subject: [PATCH] Fix DSCP --- luci-app-omr-dscp/root/etc/init.d/omr-dscp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-omr-dscp/root/etc/init.d/omr-dscp b/luci-app-omr-dscp/root/etc/init.d/omr-dscp index 70b7bd17b..9ea0d661f 100755 --- a/luci-app-omr-dscp/root/etc/init.d/omr-dscp +++ b/luci-app-omr-dscp/root/etc/init.d/omr-dscp @@ -81,8 +81,8 @@ _add_dscp_rules() { direction="" ; config_get direction "$1" direction "upload" comment="" ; config_get comment "$1" comment "-" - src_port="$(echo $src_port | sed 's/-/:)" - dest_port="$(echo $dest_port | sed 's/-/:)" + src_port="$(echo $src_port | sed 's/-/:/g')" + dest_port="$(echo $dest_port | sed 's/-/:/g')" case "$direction" in upload|both) # Apply the rule locally