diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-02-26 14:43:50 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-03-06 11:30:06 +0100 |
commit | 85b1f4d8ca2d501664acce471117dc612bb69d82 (patch) | |
tree | 000eebacaa54e49940d797da8c5ee4f2d34bed22 | |
parent | b021642cacd1b88836e5906bb2d3397b1de16da9 (diff) | |
download | upstream-85b1f4d8ca2d501664acce471117dc612bb69d82.tar.gz upstream-85b1f4d8ca2d501664acce471117dc612bb69d82.tar.bz2 upstream-85b1f4d8ca2d501664acce471117dc612bb69d82.zip |
treewide: remove execute bit and shebang from board.d files
So far, board.d files were having execute bit set and contained a
shebang. However, they are just sourced in board_detect, with an
apparantly unnecessary check for execute permission beforehand.
Replace this check by one for existance and make the board.d files
"normal" files, as would be expected in /etc anyway.
Note:
This removes an apparantly unused '#!/bin/sh /etc/rc.common' in
target/linux/bcm47xx/base-files/etc/board.d/01_network
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
92 files changed, 1 insertions, 92 deletions
diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect index 840bd0178d..94f45bec53 100755 --- a/package/base-files/files/bin/board_detect +++ b/package/base-files/files/bin/board_detect @@ -6,7 +6,7 @@ CFG=$1 [ -d "/etc/board.d/" -a ! -s "$CFG" ] && { for a in $(ls /etc/board.d/*); do - [ -x $a ] || continue; + [ -s $a ] || continue; $(. $a) done } diff --git a/package/base-files/files/etc/board.d/99-default_network b/package/base-files/files/etc/board.d/99-default_network index d70aa352b9..49d2a3b354 100755..100644 --- a/package/base-files/files/etc/board.d/99-default_network +++ b/package/base-files/files/etc/board.d/99-default_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2013-2015 OpenWrt.org # diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds index 8433490825..3dc41d90d8 100755..100644 --- a/target/linux/apm821xx/base-files/etc/board.d/01_leds +++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/apm821xx/base-files/etc/board.d/02_network b/target/linux/apm821xx/base-files/etc/board.d/02_network index 69bc038bd4..f289e4ec74 100755..100644 --- a/target/linux/apm821xx/base-files/etc/board.d/02_network +++ b/target/linux/apm821xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/arc770/base-files/etc/board.d/02_network b/target/linux/arc770/base-files/etc/board.d/02_network index 7f1d619076..f326f48763 100755..100644 --- a/target/linux/arc770/base-files/etc/board.d/02_network +++ b/target/linux/arc770/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # diff --git a/target/linux/archs38/base-files/etc/board.d/02_network b/target/linux/archs38/base-files/etc/board.d/02_network index dcf33788c5..7fcd0e51d6 100755..100644 --- a/target/linux/archs38/base-files/etc/board.d/02_network +++ b/target/linux/archs38/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2016 OpenWrt.org # diff --git a/target/linux/armvirt/base-files/etc/board.d/00_model b/target/linux/armvirt/base-files/etc/board.d/00_model index 6ba51b8a42..bfaa45f59c 100755..100644 --- a/target/linux/armvirt/base-files/etc/board.d/00_model +++ b/target/linux/armvirt/base-files/etc/board.d/00_model @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2015 OpenWrt.org # Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com> diff --git a/target/linux/at91/base-files/etc/board.d/02_network b/target/linux/at91/base-files/etc/board.d/02_network index 306dfe375e..3e11f40b32 100755..100644 --- a/target/linux/at91/base-files/etc/board.d/02_network +++ b/target/linux/at91/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2015 OpenWrt.org # diff --git a/target/linux/ath25/base-files/etc/board.d/01_leds b/target/linux/ath25/base-files/etc/board.d/01_leds index e6ab4a76b1..b417d8acef 100755..100644 --- a/target/linux/ath25/base-files/etc/board.d/01_leds +++ b/target/linux/ath25/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright 2012-2015 OpenWrt.org # diff --git a/target/linux/ath25/base-files/etc/board.d/02_network b/target/linux/ath25/base-files/etc/board.d/02_network index b2977f7b94..618ffddae8 100755..100644 --- a/target/linux/ath25/base-files/etc/board.d/02_network +++ b/target/linux/ath25/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds index f7d8ec0f85..31bc8f70df 100755..100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index c816a85460..86be2b12d7 100755..100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches b/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches index b3e0d0dd31..cd21932bfd 100755..100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2018 OpenWrt.org # diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds index 0d3209c2e3..39e527e824 100755..100644 --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network index 584acc0feb..d229523ad5 100755..100644 --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/nand/base-files/etc/board.d/01_leds b/target/linux/ath79/nand/base-files/etc/board.d/01_leds index 8eda666a81..fc74554763 100755..100644 --- a/target/linux/ath79/nand/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/nand/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/nand/base-files/etc/board.d/02_network b/target/linux/ath79/nand/base-files/etc/board.d/02_network index 910df517aa..7402fc067a 100755..100644 --- a/target/linux/ath79/nand/base-files/etc/board.d/02_network +++ b/target/linux/ath79/nand/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds index f0b4acf066..72df8b3dea 100755..100644 --- a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/02_network b/target/linux/ath79/tiny/base-files/etc/board.d/02_network index cca6352023..45335c7c89 100755..100644 --- a/target/linux/ath79/tiny/base-files/etc/board.d/02_network +++ b/target/linux/ath79/tiny/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/bcm27xx/base-files/etc/board.d/02_network b/target/linux/bcm27xx/base-files/etc/board.d/02_network index 665504a3fc..f279941e1e 100755..100644 --- a/target/linux/bcm27xx/base-files/etc/board.d/02_network +++ b/target/linux/bcm27xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2014-2016 OpenWrt.org # Copyright (C) 2017 LEDE project diff --git a/target/linux/bcm47xx/base-files/etc/board.d/01_network b/target/linux/bcm47xx/base-files/etc/board.d/01_network index 242055f2a4..c3b43b5d37 100755..100644 --- a/target/linux/bcm47xx/base-files/etc/board.d/01_network +++ b/target/linux/bcm47xx/base-files/etc/board.d/01_network @@ -1,4 +1,3 @@ -#!/bin/sh /etc/rc.common # Copyright (C) 2006-2015 OpenWrt.org . /lib/functions/system.sh diff --git a/target/linux/bcm4908/base-files/etc/board.d/02_network b/target/linux/bcm4908/base-files/etc/board.d/02_network index d16554d569..3ab22a9076 100755..100644 --- a/target/linux/bcm4908/base-files/etc/board.d/02_network +++ b/target/linux/bcm4908/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause . /lib/functions/system.sh diff --git a/target/linux/bcm53xx/base-files/etc/board.d/01_leds b/target/linux/bcm53xx/base-files/etc/board.d/01_leds index 80f799d9d7..aba526b9c3 100755..100644 --- a/target/linux/bcm53xx/base-files/etc/board.d/01_leds +++ b/target/linux/bcm53xx/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network index 231566cfa0..e37ae20340 100755..100644 --- a/target/linux/bcm53xx/base-files/etc/board.d/02_network +++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011 OpenWrt.org # diff --git a/target/linux/bcm63xx/base-files/etc/board.d/01_leds b/target/linux/bcm63xx/base-files/etc/board.d/01_leds index fe8a54f5d8..33c70981de 100755..100644 --- a/target/linux/bcm63xx/base-files/etc/board.d/01_leds +++ b/target/linux/bcm63xx/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2013-2015 OpenWrt.org # diff --git a/target/linux/bcm63xx/base-files/etc/board.d/02_network b/target/linux/bcm63xx/base-files/etc/board.d/02_network index cca607fce1..c594a9265f 100755..100644 --- a/target/linux/bcm63xx/base-files/etc/board.d/02_network +++ b/target/linux/bcm63xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2012-2015 OpenWrt.org # diff --git a/target/linux/bmips/generic/base-files/etc/board.d/01_leds b/target/linux/bmips/generic/base-files/etc/board.d/01_leds index 2f8d64a21e..3461eca10c 100755..100644 --- a/target/linux/bmips/generic/base-files/etc/board.d/01_leds +++ b/target/linux/bmips/generic/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later . /lib/functions/leds.sh diff --git a/target/linux/bmips/nand/base-files/etc/board.d/01_leds b/target/linux/bmips/nand/base-files/etc/board.d/01_leds index 2f8d64a21e..3461eca10c 100755..100644 --- a/target/linux/bmips/nand/base-files/etc/board.d/01_leds +++ b/target/linux/bmips/nand/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later . /lib/functions/leds.sh diff --git a/target/linux/gemini/base-files/etc/board.d/02_network b/target/linux/gemini/base-files/etc/board.d/02_network index f371956a66..58eb9ed40c 100755..100644 --- a/target/linux/gemini/base-files/etc/board.d/02_network +++ b/target/linux/gemini/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/imx6/base-files/etc/board.d/02_network b/target/linux/imx6/base-files/etc/board.d/02_network index 60df86e189..1668b86008 100755..100644 --- a/target/linux/imx6/base-files/etc/board.d/02_network +++ b/target/linux/imx6/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2013-2015 OpenWrt.org # diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds index 3e0f3ab258..75418a37c7 100755..100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds +++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index fe21dc8035..31f99faca2 100755..100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (c) 2015 The Linux Foundation. All rights reserved. # Copyright (c) 2011-2015 OpenWrt.org diff --git a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches index c255707f91..9029eb3a82 100755..100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds b/target/linux/ipq806x/base-files/etc/board.d/01_leds index 284f9e2c1d..74b94a29b4 100755..100644 --- a/target/linux/ipq806x/base-files/etc/board.d/01_leds +++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network b/target/linux/ipq806x/base-files/etc/board.d/02_network index ddef4b7ac6..81edc569a7 100755..100644 --- a/target/linux/ipq806x/base-files/etc/board.d/02_network +++ b/target/linux/ipq806x/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (c) 2015 The Linux Foundation. All rights reserved. # Copyright (c) 2011-2015 OpenWrt.org diff --git a/target/linux/kirkwood/base-files/etc/board.d/01_leds b/target/linux/kirkwood/base-files/etc/board.d/01_leds index 3f7fe71c0a..c9c96e30da 100755..100644 --- a/target/linux/kirkwood/base-files/etc/board.d/01_leds +++ b/target/linux/kirkwood/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2012-2015 OpenWrt.org # diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index c3d31affda..0578691144 100755..100644 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2012-2015 OpenWrt.org # diff --git a/target/linux/kirkwood/base-files/etc/board.d/03_gpio_switches b/target/linux/kirkwood/base-files/etc/board.d/03_gpio_switches index 046f8d4d20..c6c03d0b38 100755..100644 --- a/target/linux/kirkwood/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/kirkwood/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/kirkwood/base-files/etc/board.d/05_compat-version b/target/linux/kirkwood/base-files/etc/board.d/05_compat-version index 29d1debe58..267730b1b8 100755..100644 --- a/target/linux/kirkwood/base-files/etc/board.d/05_compat-version +++ b/target/linux/kirkwood/base-files/etc/board.d/05_compat-version @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2020 OpenWrt.org # diff --git a/target/linux/lantiq/ase/base-files/etc/board.d/01_leds b/target/linux/lantiq/ase/base-files/etc/board.d/01_leds index 3e58463c91..9495a62db5 100755..100644 --- a/target/linux/lantiq/ase/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/ase/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/ase/base-files/etc/board.d/02_network b/target/linux/lantiq/ase/base-files/etc/board.d/02_network index deddba2408..a088c62aa0 100755..100644 --- a/target/linux/lantiq/ase/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/ase/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/falcon/base-files/etc/board.d/02_network b/target/linux/lantiq/falcon/base-files/etc/board.d/02_network index 7998efc2a0..be214df529 100755..100644 --- a/target/linux/lantiq/falcon/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/falcon/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds index 6fd8151a4f..a011b6c584 100755..100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network index f7af17995f..77d93d016b 100755..100644 --- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xway/base-files/etc/board.d/01_leds b/target/linux/lantiq/xway/base-files/etc/board.d/01_leds index 872634aa61..dccac8c475 100755..100644 --- a/target/linux/lantiq/xway/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xway/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xway/base-files/etc/board.d/02_network b/target/linux/lantiq/xway/base-files/etc/board.d/02_network index 9813b62c1b..d924b0053c 100755..100644 --- a/target/linux/lantiq/xway/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/xway/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds index d82187de15..a6b85fe26c 100755..100644 --- a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/02_network b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/02_network index c29beb832d..7bea7e18cf 100755..100644 --- a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2011-2015 OpenWrt.org # diff --git a/target/linux/layerscape/base-files/etc/board.d/01_led b/target/linux/layerscape/base-files/etc/board.d/01_led index b9b62a07e0..7fddfa0824 100755..100644 --- a/target/linux/layerscape/base-files/etc/board.d/01_led +++ b/target/linux/layerscape/base-files/etc/board.d/01_led @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # diff --git a/target/linux/layerscape/base-files/etc/board.d/02_network b/target/linux/layerscape/base-files/etc/board.d/02_network index c50b4a346a..b46f0b0621 100755..100644 --- a/target/linux/layerscape/base-files/etc/board.d/02_network +++ b/target/linux/layerscape/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/system.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/layerscape/base-files/etc/board.d/03_gpio_switches b/target/linux/layerscape/base-files/etc/board.d/03_gpio_switches index 7f9da08668..df3b759916 100755..100644 --- a/target/linux/layerscape/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/layerscape/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2015 OpenWrt.org # diff --git a/target/linux/malta/base-files/etc/board.d/00_model b/target/linux/malta/base-files/etc/board.d/00_model index 7a834058f3..d4d08b2259 100755..100644 --- a/target/linux/malta/base-files/etc/board.d/00_model +++ b/target/linux/malta/base-files/etc/board.d/00_model @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2015 OpenWrt.org . /lib/functions/uci-defaults.sh diff --git a/target/linux/malta/base-files/etc/board.d/02_network b/target/linux/malta/base-files/etc/board.d/02_network index 8f01108938..4a711c253e 100755..100644 --- a/target/linux/malta/base-files/etc/board.d/02_network +++ b/target/linux/malta/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network index f0d28c9312..f537ccdb80 100755..100644 --- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/mediatek/mt7623/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7623/base-files/etc/board.d/02_network index 391b1ddc07..2006248530 100755..100644 --- a/target/linux/mediatek/mt7623/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7623/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network index 24c66de788..c39417abbc 100755..100644 --- a/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/mt7629/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/mpc85xx/base-files/etc/board.d/02_network b/target/linux/mpc85xx/base-files/etc/board.d/02_network index aa33a4af96..03153b73d0 100755..100644 --- a/target/linux/mpc85xx/base-files/etc/board.d/02_network +++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2014-2015 OpenWrt.org . /lib/functions/uci-defaults.sh diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds index 42f4deb88a..4dce204f14 100755..100644 --- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds +++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # SPDX-License-Identifier: GPL-2.0-only . /lib/functions/uci-defaults.sh diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa53/base-files/etc/board.d/02_network index c945251e4e..7da9de58c7 100755..100644 --- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2016 OpenWrt.org # Copyright (C) 2016 LEDE-Project.org diff --git a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network index 9ab3c8174d..dbffd00223 100755..100644 --- a/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2016 OpenWrt.org # Copyright (C) 2016 LEDE-Project.org diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds index 5a2ca3fa85..381596d85d 100755..100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2016 OpenWrt.org # Copyright (C) 2016 LEDE-Project.org diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network index a8974efaa8..ad61dbea43 100755..100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2016 OpenWrt.org # Copyright (C) 2016 LEDE-Project.org diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version b/target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version index 9304b84e7f..737ba54480 100755..100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2020 OpenWrt.org # diff --git a/target/linux/mxs/base-files/etc/board.d/02_network b/target/linux/mxs/base-files/etc/board.d/02_network index 95f6534788..7822f8076c 100755..100644 --- a/target/linux/mxs/base-files/etc/board.d/02_network +++ b/target/linux/mxs/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2013-2015 OpenWrt.org . /lib/functions/uci-defaults.sh diff --git a/target/linux/octeon/base-files/etc/board.d/01_network b/target/linux/octeon/base-files/etc/board.d/01_network index 749d99be1d..e62d3c28bf 100755..100644 --- a/target/linux/octeon/base-files/etc/board.d/01_network +++ b/target/linux/octeon/base-files/etc/board.d/01_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2014-2015 OpenWrt.org # diff --git a/target/linux/octeontx/base-files/etc/board.d/02_network b/target/linux/octeontx/base-files/etc/board.d/02_network index 743e0f2ed7..1397dffa5e 100755..100644 --- a/target/linux/octeontx/base-files/etc/board.d/02_network +++ b/target/linux/octeontx/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2018 OpenWrt.org # diff --git a/target/linux/oxnas/base-files/etc/board.d/02_network b/target/linux/oxnas/base-files/etc/board.d/02_network index 9ba2deb7b4..747034c3dd 100755..100644 --- a/target/linux/oxnas/base-files/etc/board.d/02_network +++ b/target/linux/oxnas/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh . /lib/functions/system.sh diff --git a/target/linux/pistachio/base-files/etc/board.d/02_network b/target/linux/pistachio/base-files/etc/board.d/02_network index 8de2c8c38d..35ae56394c 100755..100644 --- a/target/linux/pistachio/base-files/etc/board.d/02_network +++ b/target/linux/pistachio/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # SPDX-License-Identifier: GPL-2.0-only # # Copyright (C) 2017 OpenWrt.org diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index 292f310d51..40d322685a 100755..100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index e614de5010..2d5c9c02dd 100755..100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches index 959991598c..969e9eba63 100755..100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds index 5fa9ad3fe8..6743b7e6c3 100755..100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network index 89e679be7c..934276a042 100755..100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches b/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches index 82bbdd24f6..8a96e93226 100755..100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version index d79092f76f..45bef9385b 100755..100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2020 OpenWrt.org # diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index 47b73e01a2..fdef158ea8 100755..100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index b741b4f9b4..5ce44d0e9b 100755..100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds index b62ad76110..f9434023bb 100755..100644 --- a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt288x/base-files/etc/board.d/02_network b/target/linux/ramips/rt288x/base-files/etc/board.d/02_network index 134ac879cd..dd433dd7d6 100755..100644 --- a/target/linux/ramips/rt288x/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt288x/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds index d29328e4b0..bc91b81a70 100755..100644 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network index c3e39e76d0..db200de9fa 100755..100644 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds index 6e8497aff6..ecae088d88 100755..100644 --- a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/ramips/rt3883/base-files/etc/board.d/02_network b/target/linux/ramips/rt3883/base-files/etc/board.d/02_network index f26199611e..519afe6329 100755..100644 --- a/target/linux/ramips/rt3883/base-files/etc/board.d/02_network +++ b/target/linux/ramips/rt3883/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/realtek/base-files/etc/board.d/01_leds b/target/linux/realtek/base-files/etc/board.d/01_leds index 699ab817dd..4091645c8e 100755..100644 --- a/target/linux/realtek/base-files/etc/board.d/01_leds +++ b/target/linux/realtek/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network index 2568fd2e0e..1e199db589 100755..100644 --- a/target/linux/realtek/base-files/etc/board.d/02_network +++ b/target/linux/realtek/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds index bba3e2aa56..e97ea3312d 100755..100644 --- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/leds.sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network index 48133c81a1..99f55513aa 100755..100644 --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh . /lib/functions/system.sh diff --git a/target/linux/sunxi/base-files/etc/board.d/01_leds b/target/linux/sunxi/base-files/etc/board.d/01_leds index 32fa00f8a2..45153b44dc 100755..100644 --- a/target/linux/sunxi/base-files/etc/board.d/01_leds +++ b/target/linux/sunxi/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh . /lib/functions/uci-defaults.sh diff --git a/target/linux/sunxi/base-files/etc/board.d/02_network b/target/linux/sunxi/base-files/etc/board.d/02_network index 08d31caadc..5b59333b1f 100755..100644 --- a/target/linux/sunxi/base-files/etc/board.d/02_network +++ b/target/linux/sunxi/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright (C) 2013-2015 OpenWrt.org # diff --git a/target/linux/x86/base-files/etc/board.d/01_leds b/target/linux/x86/base-files/etc/board.d/01_leds index e9133e8877..79e1191080 100755..100644 --- a/target/linux/x86/base-files/etc/board.d/01_leds +++ b/target/linux/x86/base-files/etc/board.d/01_leds @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright © 2017 OpenWrt.org # diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network index 05a68967bc..8d10c637e8 100755..100644 --- a/target/linux/x86/base-files/etc/board.d/02_network +++ b/target/linux/x86/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # # Copyright © 2017 OpenWrt.org # diff --git a/target/linux/zynq/base-files/etc/board.d/02_network b/target/linux/zynq/base-files/etc/board.d/02_network index b3670cf37b..159b457682 100755..100644 --- a/target/linux/zynq/base-files/etc/board.d/02_network +++ b/target/linux/zynq/base-files/etc/board.d/02_network @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (C) 2015 OpenWrt.org . /lib/functions/uci-defaults.sh |