This drops the shebang from all target files for /lib and /etc/uci-defaults folders, as these are sourced and the shebang is useless. While at it, fix the executable flag on a few of these files. This does not touch ar71xx, as this target is just used for backporting now and applying cosmetic changes would just complicate things. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 lines
227 B
Text
5 lines
227 B
Text
kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kernel\|linux\)".*/\1/p' /proc/mtd)
|
|
|
|
mtd ${kernel_size:+-c 0x$kernel_size} fixtrx firmware && exit 0
|
|
mtd ${kernel_size:+-c 0x$kernel_size} fixseama firmware && exit 0
|
|
exit 1
|