From: Adrian Schmutzler Date: Fri, 26 Feb 2021 13:43:50 +0000 (+0100) Subject: treewide: remove execute bit and shebang from board.d files X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=85b1f4d8ca2d;p=openwrt%2Fstaging%2Frmilecki.git 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 --- diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect index 840bd0178d1..94f45bec53a 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 old mode 100755 new mode 100644 index d70aa352b92..49d2a3b3544 --- 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 old mode 100755 new mode 100644 index 84334908255..3dc41d90d8f --- 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 old mode 100755 new mode 100644 index 69bc038bd43..f289e4ec747 --- 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 old mode 100755 new mode 100644 index 7f1d6190769..f326f487639 --- 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 old mode 100755 new mode 100644 index dcf33788c51..7fcd0e51d69 --- 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 old mode 100755 new mode 100644 index 6ba51b8a423..bfaa45f59cc --- 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 diff --git a/target/linux/at91/base-files/etc/board.d/02_network b/target/linux/at91/base-files/etc/board.d/02_network old mode 100755 new mode 100644 index 306dfe375ed..3e11f40b325 --- 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 old mode 100755 new mode 100644 index e6ab4a76b11..b417d8acef0 --- 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 old mode 100755 new mode 100644 index b2977f7b94a..618ffddae8d --- 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 old mode 100755 new mode 100644 index f7d8ec0f852..31bc8f70dfe --- 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 old mode 100755 new mode 100644 index c816a854603..86be2b12d7c --- 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 old mode 100755 new mode 100644 index b3e0d0dd316..cd21932bfd4 --- 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 old mode 100755 new mode 100644 index 0d3209c2e35..39e527e8242 --- 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 old mode 100755 new mode 100644 index 584acc0feb6..d229523ad55 --- 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 old mode 100755 new mode 100644 index 8eda666a812..fc745547634 --- 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 old mode 100755 new mode 100644 index 910df517aa3..7402fc067a5 --- 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 old mode 100755 new mode 100644 index f0b4acf0662..72df8b3dea0 --- 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 old mode 100755 new mode 100644 index cca63520237..45335c7c895 --- 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 old mode 100755 new mode 100644 index 665504a3fc5..f279941e1ef --- 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 old mode 100755 new mode 100644 index 242055f2a43..c3b43b5d37a --- 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 old mode 100755 new mode 100644 index d16554d569a..3ab22a90760 --- 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 old mode 100755 new mode 100644 index 80f799d9d7e..aba526b9c34 --- 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 old mode 100755 new mode 100644 index 231566cfa01..e37ae203408 --- 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 old mode 100755 new mode 100644 index fe8a54f5d86..33c70981de5 --- 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 old mode 100755 new mode 100644 index cca607fce1a..c594a9265f8 --- 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 old mode 100755 new mode 100644 index 2f8d64a21ee..3461eca10c9 --- 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 old mode 100755 new mode 100644 index 2f8d64a21ee..3461eca10c9 --- 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 old mode 100755 new mode 100644 index f371956a663..58eb9ed40cf --- 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 old mode 100755 new mode 100644 index 60df86e1899..1668b860081 --- 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 old mode 100755 new mode 100644 index 3e0f3ab2586..75418a37c75 --- 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 old mode 100755 new mode 100644 index fe21dc80352..31f99faca2d --- 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 old mode 100755 new mode 100644 index c255707f916..9029eb3a828 --- 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 old mode 100755 new mode 100644 index 284f9e2c1d2..74b94a29b4c --- 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 old mode 100755 new mode 100644 index ddef4b7ac6c..81edc569a75 --- 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 old mode 100755 new mode 100644 index 3f7fe71c0a0..c9c96e30da1 --- 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 old mode 100755 new mode 100644 index c3d31affda2..05786911444 --- 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 old mode 100755 new mode 100644 index 046f8d4d207..c6c03d0b38a --- 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 old mode 100755 new mode 100644 index 29d1debe58b..267730b1b8a --- 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 old mode 100755 new mode 100644 index 3e58463c910..9495a62db51 --- 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 old mode 100755 new mode 100644 index deddba2408c..a088c62aa0a --- 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 old mode 100755 new mode 100644 index 7998efc2a0e..be214df5291 --- 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 old mode 100755 new mode 100644 index 6fd8151a4fc..a011b6c5849 --- 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 old mode 100755 new mode 100644 index f7af17995f0..77d93d016b0 --- 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 old mode 100755 new mode 100644 index 872634aa61e..dccac8c4751 --- 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 old mode 100755 new mode 100644 index 9813b62c1bf..d924b0053c9 --- 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 old mode 100755 new mode 100644 index d82187de15d..a6b85fe26c6 --- 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 old mode 100755 new mode 100644 index c29beb832d3..7bea7e18cf3 --- 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 old mode 100755 new mode 100644 index b9b62a07e0f..7fddfa08245 --- 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 old mode 100755 new mode 100644 index c50b4a346ad..b46f0b06215 --- 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 old mode 100755 new mode 100644 index 7f9da08668a..df3b759916d --- 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 old mode 100755 new mode 100644 index 7a834058f3c..d4d08b22592 --- 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 old mode 100755 new mode 100644 index 8f011089380..4a711c253ec --- 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 old mode 100755 new mode 100644 index f0d28c93120..f537ccdb80a --- 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 old mode 100755 new mode 100644 index 391b1ddc07d..2006248530b --- 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 old mode 100755 new mode 100644 index 24c66de788f..c39417abbc9 --- 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 old mode 100755 new mode 100644 index aa33a4af963..03153b73d0b --- 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 old mode 100755 new mode 100644 index 42f4deb88ad..4dce204f140 --- 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 old mode 100755 new mode 100644 index c945251e4ea..7da9de58c7a --- 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 old mode 100755 new mode 100644 index 9ab3c8174d9..dbffd00223a --- 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 old mode 100755 new mode 100644 index 5a2ca3fa858..381596d85d1 --- 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 old mode 100755 new mode 100644 index a8974efaa80..ad61dbea43f --- 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 old mode 100755 new mode 100644 index 9304b84e7ff..737ba54480b --- 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 old mode 100755 new mode 100644 index 95f6534788b..7822f8076c7 --- 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 old mode 100755 new mode 100644 index 749d99be1d1..e62d3c28bfa --- 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 old mode 100755 new mode 100644 index 743e0f2ed7f..1397dffa5ef --- 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 old mode 100755 new mode 100644 index 9ba2deb7b42..747034c3ddb --- 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 old mode 100755 new mode 100644 index 8de2c8c38d3..35ae56394c4 --- 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 old mode 100755 new mode 100644 index 292f310d510..40d322685af --- 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 old mode 100755 new mode 100644 index e614de5010a..2d5c9c02dd0 --- 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 old mode 100755 new mode 100644 index 959991598cd..969e9eba63a --- 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 old mode 100755 new mode 100644 index 5fa9ad3fe81..6743b7e6c3b --- 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 old mode 100755 new mode 100644 index 89e679be7cd..934276a042c --- 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 old mode 100755 new mode 100644 index 82bbdd24f67..8a96e932267 --- 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 old mode 100755 new mode 100644 index d79092f76f7..45bef9385bd --- 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 old mode 100755 new mode 100644 index 47b73e01a20..fdef158ea87 --- 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 old mode 100755 new mode 100644 index b741b4f9b4d..5ce44d0e9b2 --- 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 old mode 100755 new mode 100644 index b62ad76110f..f9434023bbb --- 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 old mode 100755 new mode 100644 index 134ac879cd7..dd433dd7d69 --- 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 old mode 100755 new mode 100644 index d29328e4b01..bc91b81a70e --- 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 old mode 100755 new mode 100644 index c3e39e76d07..db200de9fa1 --- 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 old mode 100755 new mode 100644 index 6e8497aff6d..ecae088d88f --- 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 old mode 100755 new mode 100644 index f26199611ed..519afe63294 --- 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 old mode 100755 new mode 100644 index 699ab817dde..4091645c8e9 --- 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 old mode 100755 new mode 100644 index 2568fd2e0e0..1e199db5897 --- 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 old mode 100755 new mode 100644 index bba3e2aa566..e97ea3312d3 --- 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 old mode 100755 new mode 100644 index 48133c81a16..99f55513aa8 --- 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 old mode 100755 new mode 100644 index 32fa00f8a2b..45153b44dc7 --- 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 old mode 100755 new mode 100644 index 08d31caadc0..5b59333b1f0 --- 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 old mode 100755 new mode 100644 index e9133e88772..79e1191080b --- 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 old mode 100755 new mode 100644 index 05a68967bc6..8d10c637e80 --- 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 old mode 100755 new mode 100644 index b3670cf37b7..159b457682a --- 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