ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.sh
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 Aug 2015 06:01:44 +0000 (06:01 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 Aug 2015 06:01:44 +0000 (06:01 +0000)
commit09c1e924c27aa74ae6cc444590dbe71418907575
tree9de9726e8df443747d314e0423d63ce216cd51c7
parent70f88257b561a659c3cec7ddd0a89cad31df04cd
ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.sh

This patch:
 * fixes various mistakes (leading spaces, wrong or missing model names)
 * shortens model strings (we don't need to use whole model string from dts file, make it for consistency and as optimization)
 * sorts boards alphabetically

in base-files/lib/ramips.sh script.

Case statement was tested after above changes with simple script, which:
 * takes model string from dts{,i} file (model = "...")
 * provides this value as case input ($machine)
 * returns output ($name)

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46632 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/base-files/lib/ramips.sh