Developing lightweight computation at the DSG edge

Commit bb3792c8 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Remove unneeded awk in qmp_configure_network of qmp_functions.sh to optimize.

parent f32b1a51
......@@ -518,7 +518,7 @@ qmp_configure_network() {
if [ $(uci get qmp.non_overlapping.ignore) -eq 0 ]; then
LAN_MASK="255.255.0.0"
# Last byte of lan adress must be "1" to avoid overlappings
LAN_ADDR=$(echo $LAN_ADDR | sed -e 's/\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\)/&.1:/1' | awk -F ":" '{print $1}')
LAN_ADDR=$(echo $LAN_ADDR | sed -e 's/\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\)\.[0-9]\{1,3\}/\1.1/1')
OFFSET=0
NUM_GRP=256
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment