icwmp: Use correct syntax with tr

The tr command does not take regular expressions. In addition,
unquoted use of [] is unsafe as it is subject to wildcard expansion by
the shell.
This commit is contained in:
Erik Karlsson 2022-01-27 14:41:54 +01:00 committed by Vivek Kumar Dutta
parent 0dd95029e6
commit dc56c93b73

View file

@ -6,7 +6,7 @@ if [ -z "${oui}" ]; then
oui=$(db -q get device.deviceinfo.ManufacturerOUI)
fi
oui=$(echo ${oui}|tr [a-f] [A-F])
oui=$(echo "${oui}" | tr 'a-f' 'A-F')
# Get system serial number.
serial=$(uci -q get cwmp.cpe.serial_number)