aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config.rpath
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-03-29 12:58:01 +0000
committerJohn Crispin <john@openwrt.org>2015-03-29 12:58:01 +0000
commit23d37c1208cea03ecb3b4d50e7074fd147917114 (patch)
tree10aff95575d734eed867f5ac3dd7c20a1037edf3 /scripts/config.rpath
parent8d8f01088a00bee0ddb9bd7d377d776cf034d35a (diff)
downloadupstream-23d37c1208cea03ecb3b4d50e7074fd147917114.tar.gz
upstream-23d37c1208cea03ecb3b4d50e7074fd147917114.tar.bz2
upstream-23d37c1208cea03ecb3b4d50e7074fd147917114.zip
ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC
There were a few issues with the existing code to detect the model string: * Always using the string starting with byte 56 would cut off the W of WNDR when the ID starts with 29763654+16+64 instead of 29763654+16+128 * The string contained garbage after the zero byte instead of cutting it off after the zero (which wasn't always visible using busybox tools, but could confuse other scripts) Tested on a WNDR3700v1 and a WNDR3700v2 using the new 29763654+16+64 ID in the ART. Furthermore, tested against ART dumps of a WNDR3700v2 using the old $'\xff...' value and a WNDR3800. The [ -z "$model" ] check was dropped as there is no way to actually hit this unless no ART partition is found at all. The awk command was carefully crafted to work both with gawk and the (horribly broken) busybox awk. Fixes #18992. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 45140
Diffstat (limited to 'scripts/config.rpath')
0 files changed, 0 insertions, 0 deletions
a id='n167' href='#n167'>167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242