[openwrt/openwrt] treewide: remove execute bit and shebang from board.d files
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 6 11:43:02 GMT 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/85b1f4d8ca2d501664acce471117dc612bb69d82
commit 85b1f4d8ca2d501664acce471117dc612bb69d82
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Fri Feb 26 14:43:50 2021 +0100
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 at adrianschmutzler.de>
---
package/base-files/files/bin/board_detect | 2 +-
package/base-files/files/etc/board.d/99-default_network | 1 -
target/linux/apm821xx/base-files/etc/board.d/01_leds | 1 -
target/linux/apm821xx/base-files/etc/board.d/02_network | 1 -
target/linux/arc770/base-files/etc/board.d/02_network | 1 -
target/linux/archs38/base-files/etc/board.d/02_network | 1 -
target/linux/armvirt/base-files/etc/board.d/00_model | 1 -
target/linux/at91/base-files/etc/board.d/02_network | 1 -
target/linux/ath25/base-files/etc/board.d/01_leds | 1 -
target/linux/ath25/base-files/etc/board.d/02_network | 1 -
target/linux/ath79/generic/base-files/etc/board.d/01_leds | 1 -
target/linux/ath79/generic/base-files/etc/board.d/02_network | 1 -
target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds | 1 -
target/linux/ath79/mikrotik/base-files/etc/board.d/02_network | 1 -
target/linux/ath79/nand/base-files/etc/board.d/01_leds | 1 -
target/linux/ath79/nand/base-files/etc/board.d/02_network | 1 -
target/linux/ath79/tiny/base-files/etc/board.d/01_leds | 1 -
target/linux/ath79/tiny/base-files/etc/board.d/02_network | 1 -
target/linux/bcm27xx/base-files/etc/board.d/02_network | 1 -
target/linux/bcm47xx/base-files/etc/board.d/01_network | 1 -
target/linux/bcm4908/base-files/etc/board.d/02_network | 1 -
target/linux/bcm53xx/base-files/etc/board.d/01_leds | 1 -
target/linux/bcm53xx/base-files/etc/board.d/02_network | 1 -
target/linux/bcm63xx/base-files/etc/board.d/01_leds | 1 -
target/linux/bcm63xx/base-files/etc/board.d/02_network | 1 -
target/linux/bmips/generic/base-files/etc/board.d/01_leds | 1 -
target/linux/bmips/nand/base-files/etc/board.d/01_leds | 1 -
target/linux/gemini/base-files/etc/board.d/02_network | 1 -
target/linux/imx6/base-files/etc/board.d/02_network | 1 -
target/linux/ipq40xx/base-files/etc/board.d/01_leds | 1 -
target/linux/ipq40xx/base-files/etc/board.d/02_network | 1 -
target/linux/ipq40xx/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/ipq806x/base-files/etc/board.d/01_leds | 1 -
target/linux/ipq806x/base-files/etc/board.d/02_network | 1 -
target/linux/kirkwood/base-files/etc/board.d/01_leds | 1 -
target/linux/kirkwood/base-files/etc/board.d/02_network | 1 -
target/linux/kirkwood/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/kirkwood/base-files/etc/board.d/05_compat-version | 1 -
target/linux/lantiq/ase/base-files/etc/board.d/01_leds | 1 -
target/linux/lantiq/ase/base-files/etc/board.d/02_network | 1 -
target/linux/lantiq/falcon/base-files/etc/board.d/02_network | 1 -
target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds | 1 -
target/linux/lantiq/xrx200/base-files/etc/board.d/02_network | 1 -
target/linux/lantiq/xway/base-files/etc/board.d/01_leds | 1 -
target/linux/lantiq/xway/base-files/etc/board.d/02_network | 1 -
target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds | 1 -
target/linux/lantiq/xway_legacy/base-files/etc/board.d/02_network | 1 -
target/linux/layerscape/base-files/etc/board.d/01_led | 1 -
target/linux/layerscape/base-files/etc/board.d/02_network | 1 -
target/linux/layerscape/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/malta/base-files/etc/board.d/00_model | 1 -
target/linux/malta/base-files/etc/board.d/02_network | 1 -
target/linux/mediatek/mt7622/base-files/etc/board.d/02_network | 1 -
target/linux/mediatek/mt7623/base-files/etc/board.d/02_network | 1 -
target/linux/mediatek/mt7629/base-files/etc/board.d/02_network | 1 -
target/linux/mpc85xx/base-files/etc/board.d/02_network | 1 -
target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds | 1 -
target/linux/mvebu/cortexa53/base-files/etc/board.d/02_network | 1 -
target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network | 1 -
target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds | 1 -
target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network | 1 -
target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version | 1 -
target/linux/mxs/base-files/etc/board.d/02_network | 1 -
target/linux/octeon/base-files/etc/board.d/01_network | 1 -
target/linux/octeontx/base-files/etc/board.d/02_network | 1 -
target/linux/oxnas/base-files/etc/board.d/02_network | 1 -
target/linux/pistachio/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches | 1 -
target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version | 1 -
target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/rt288x/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/rt288x/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/rt305x/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/rt305x/base-files/etc/board.d/02_network | 1 -
target/linux/ramips/rt3883/base-files/etc/board.d/01_leds | 1 -
target/linux/ramips/rt3883/base-files/etc/board.d/02_network | 1 -
target/linux/realtek/base-files/etc/board.d/01_leds | 1 -
target/linux/realtek/base-files/etc/board.d/02_network | 1 -
target/linux/rockchip/armv8/base-files/etc/board.d/01_leds | 1 -
target/linux/rockchip/armv8/base-files/etc/board.d/02_network | 1 -
target/linux/sunxi/base-files/etc/board.d/01_leds | 1 -
target/linux/sunxi/base-files/etc/board.d/02_network | 1 -
target/linux/x86/base-files/etc/board.d/01_leds | 1 -
target/linux/x86/base-files/etc/board.d/02_network | 1 -
target/linux/zynq/base-files/etc/board.d/02_network | 1 -
92 files changed, 1 insertion(+), 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
old mode 100755
new mode 100644
index d70aa352b9..49d2a3b354
--- 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 8433490825..3dc41d90d8
--- 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 69bc038bd4..f289e4ec74
--- 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 7f1d619076..f326f48763
--- 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 dcf33788c5..7fcd0e51d6
--- 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 6ba51b8a42..bfaa45f59c
--- 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 at 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
old mode 100755
new mode 100644
index 306dfe375e..3e11f40b32
--- 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 e6ab4a76b1..b417d8acef
--- 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 b2977f7b94..618ffddae8
--- 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 f7d8ec0f85..31bc8f70df
--- 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 c816a85460..86be2b12d7
--- 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 b3e0d0dd31..cd21932bfd
--- 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 0d3209c2e3..39e527e824
--- 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 584acc0feb..d229523ad5
--- 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 8eda666a81..fc74554763
--- 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 910df517aa..7402fc067a
--- 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 f0b4acf066..72df8b3dea
--- 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 cca6352023..45335c7c89
--- 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 665504a3fc..f279941e1e
--- 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 242055f2a4..c3b43b5d37
--- 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 d16554d569..3ab22a9076
--- 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 80f799d9d7..aba526b9c3
--- 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 231566cfa0..e37ae20340
--- 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 fe8a54f5d8..33c70981de
--- 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 cca607fce1..c594a9265f
--- 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 2f8d64a21e..3461eca10c
--- 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 2f8d64a21e..3461eca10c
--- 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 f371956a66..58eb9ed40c
--- 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 60df86e189..1668b86008
--- 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 3e0f3ab258..75418a37c7
--- 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 fe21dc8035..31f99faca2
--- 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 c255707f91..9029eb3a82
--- 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 284f9e2c1d..74b94a29b4
--- 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 ddef4b7ac6..81edc569a7
--- 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 3f7fe71c0a..c9c96e30da
--- 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 c3d31affda..0578691144
--- 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 046f8d4d20..c6c03d0b38
--- 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 29d1debe58..267730b1b8
--- 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 3e58463c91..9495a62db5
--- 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 deddba2408..a088c62aa0
--- 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 7998efc2a0..be214df529
--- 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 6fd8151a4f..a011b6c584
--- 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 f7af17995f..77d93d016b
--- 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 872634aa61..dccac8c475
--- 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 9813b62c1b..d924b0053c
--- 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 d82187de15..a6b85fe26c
--- 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 c29beb832d..7bea7e18cf
--- 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 b9b62a07e0..7fddfa0824
--- 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 c50b4a346a..b46f0b0621
--- 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 7f9da08668..df3b759916
--- 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 7a834058f3..d4d08b2259
--- 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 8f01108938..4a711c253e
--- 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 f0d28c9312..f537ccdb80
--- 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 391b1ddc07..2006248530
--- 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 24c66de788..c39417abbc
--- 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 aa33a4af96..03153b73d0
--- 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 42f4deb88a..4dce204f14
--- 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 c945251e4e..7da9de58c7
--- 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 9ab3c8174d..dbffd00223
--- 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 5a2ca3fa85..381596d85d
--- 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 a8974efaa8..ad61dbea43
--- 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 9304b84e7f..737ba54480
--- 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 95f6534788..7822f8076c
--- 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 749d99be1d..e62d3c28bf
--- 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 743e0f2ed7..1397dffa5e
--- 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 9ba2deb7b4..747034c3dd
--- 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 8de2c8c38d..35ae56394c
--- 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 292f310d51..40d322685a
--- 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 e614de5010..2d5c9c02dd
--- 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 959991598c..969e9eba63
--- 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 5fa9ad3fe8..6743b7e6c3
--- 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 89e679be7c..934276a042
--- 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 82bbdd24f6..8a96e93226
--- 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 d79092f76f..45bef9385b
--- 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 47b73e01a2..fdef158ea8
--- 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 b741b4f9b4..5ce44d0e9b
--- 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 b62ad76110..f9434023bb
--- 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 134ac879cd..dd433dd7d6
--- 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 d29328e4b0..bc91b81a70
--- 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 c3e39e76d0..db200de9fa
--- 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 6e8497aff6..ecae088d88
--- 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 f26199611e..519afe6329
--- 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 699ab817dd..4091645c8e
--- 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 2568fd2e0e..1e199db589
--- 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 bba3e2aa56..e97ea3312d
--- 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 48133c81a1..99f55513aa
--- 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 32fa00f8a2..45153b44dc
--- 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 08d31caadc..5b59333b1f
--- 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 e9133e8877..79e1191080
--- 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 05a68967bc..8d10c637e8
--- 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 b3670cf37b..159b457682
--- 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
More information about the lede-commits
mailing list