mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
0dd95029e6
commit
dc56c93b73
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue