aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-01-25 12:48:42 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-01-29 14:29:41 +0100
commit331892f85f1cfab21b26a1f84824f4110e06027f (patch)
tree675577fa4f606e0afdaa04371cbcdfacb7595ab6 /target
parent2c35899d8196c3c4f02c9b788b99a8a3bbbb32d1 (diff)
downloadupstream-331892f85f1cfab21b26a1f84824f4110e06027f.tar.gz
upstream-331892f85f1cfab21b26a1f84824f4110e06027f.tar.bz2
upstream-331892f85f1cfab21b26a1f84824f4110e06027f.zip
treewide: drop shebang from non-executable lib files
This drops the shebang from another bunch of files in various /lib folders, as these are sourced and the shebang is useless. Fix execute bit in one case, too. This should cover almost all trivial cases now, i.e. where /lib is actually used for library files. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq3
-rw-r--r--target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config2
-rw-r--r--target/linux/tegra/base-files/lib/preinit/79_move_config3
3 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
index 4f7dc6673c..5f059ee974 100644
--- a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
+++ b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
@@ -1,8 +1,5 @@
-#!/bin/sh
-
set_preinit_iface() {
ifname=eth0
}
boot_hook_add preinit_main set_preinit_iface
-
diff --git a/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config b/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
index 865a5fb90c..8a30b84497 100644
--- a/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
+++ b/target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
@@ -1,5 +1,3 @@
-#!/bin/sh
-
. /lib/upgrade/common.sh
RECOVERY_PART=/dev/mmcblk0p6
diff --git a/target/linux/tegra/base-files/lib/preinit/79_move_config b/target/linux/tegra/base-files/lib/preinit/79_move_config
index d17e734ac8..ff1c7c1ed7 100644
--- a/target/linux/tegra/base-files/lib/preinit/79_move_config
+++ b/target/linux/tegra/base-files/lib/preinit/79_move_config
@@ -1,5 +1,3 @@
-#!/bin/sh
-
move_config() {
local partdev
@@ -19,4 +17,3 @@ move_config() {
}
boot_hook_add preinit_mount_root move_config
-