treewide: drop shebang from non-executable target files
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 6 Jun 2020 21:13:41 +0000 (23:13 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 16 Jun 2020 12:26:33 +0000 (14:26 +0200)
This drops the shebang from all target files for /lib and
/etc/uci-defaults folders, as these are sourced and the shebang
is useless.

While at it, fix the executable flag on a few of these files.

This does not touch ar71xx, as this target is just used for
backporting now and applying cosmetic changes would just complicate
things.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
61 files changed:
target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx
target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx
target/linux/apm821xx/base-files/lib/preinit/79_move_config
target/linux/apm821xx/base-files/lib/upgrade/platform.sh [changed mode: 0755->0644]
target/linux/arc770/base-files/lib/arc.sh
target/linux/arc770/base-files/lib/preinit/01_preinit_arc.sh
target/linux/archs38/base-files/lib/preinit/01_preinit_arc.sh
target/linux/at91/base-files/lib/at91.sh [changed mode: 0755->0644]
target/linux/at91/base-files/lib/preinit/01_preinit_do_at91.sh
target/linux/ath25/base-files/lib/preinit/15_preinit_iface_atheros
target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration
target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum
target/linux/ath79/generic/base-files/lib/functions/k2t.sh [changed mode: 0755->0644]
target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh
target/linux/ath79/mikrotik/base-files/etc/uci-defaults/04_led_migration
target/linux/bcm27xx/base-files/lib/preinit/05_set_preinit_iface_brcm2708
target/linux/bcm27xx/base-files/lib/preinit/79_move_config
target/linux/bcm47xx/base-files/etc/uci-defaults/03_network_migration
target/linux/bcm47xx/base-files/etc/uci-defaults/09_fix_crc
target/linux/bcm47xx/base-files/lib/preinit/01_sysinfo
target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc
target/linux/bcm63xx/base-files/etc/uci-defaults/09_fix_crc
target/linux/cns3xxx/base-files/lib/cns3xxx.sh
target/linux/cns3xxx/base-files/lib/preinit/01_sysinfo
target/linux/gemini/base-files/etc/uci-defaults/09_fix-checksum
target/linux/gemini/base-files/lib/preinit/05_set_ether_mac_gemini
target/linux/imx6/base-files/lib/imx6.sh [changed mode: 0755->0644]
target/linux/imx6/base-files/lib/preinit/01_sysinfo
target/linux/imx6/base-files/lib/preinit/79_move_config
target/linux/ipq40xx/base-files/lib/preinit/05_set_iface_mac_ipq40xx.sh
target/linux/ipq40xx/base-files/lib/preinit/06_set_preinit_iface_ipq40xx.sh
target/linux/ipq806x/base-files/lib/upgrade/buffalo.sh
target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
target/linux/lantiq/base-files/etc/uci-defaults/02_migrate_xdsl_iface
target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth
target/linux/layerscape/base-files/lib/upgrade/platform.sh
target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac
target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config
target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
target/linux/mvebu/base-files/lib/preinit/79_move_config
target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/04_mambafan
target/linux/octeon/base-files/lib/preinit/79_move_config
target/linux/omap/base-files/lib/preinit/79_move_config
target/linux/pistachio/base-files/lib/upgrade/platform.sh [changed mode: 0755->0644]
target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master
target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration
target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration
target/linux/ramips/rt305x/base-files/lib/preinit/04_handle_checksumming
target/linux/ramips/rt3883/base-files/lib/preinit/04_handle_checksumming
target/linux/x86/64/base-files/lib/preinit/45_mount_xenfs
target/linux/x86/base-files/lib/preinit/02_load_x86_ucode
target/linux/x86/base-files/lib/preinit/15_essential_fs_x86
target/linux/x86/base-files/lib/preinit/79_move_config
target/linux/x86/base-files/lib/preinit/81_upgrade_bootloader
target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs

index 11955dd5a2660016b9ca17a92fa1573cbc8210d6..1f8c1c29fbebaddd1724f2cfde1481627e507b42 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 preinit_set_mac_address() {
        . /lib/functions.sh
 
index a15a055a25275f12a5a8b7e74539faaa327d6f88..eabafc010bf785741c25a74e4cfa1b5d6e2422cd 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 apm821xx_set_preinit_iface() {
        ifname=eth0
 }
index 37d35b663b4ce40b0ea8d2eb2ff3b9d0eb424230..1796e9f5f4633d8230112980026714d4c8a941ad 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 BOOTPART=/dev/sda1
 
 move_config() {
index 185aeedb2dcf5aa6b91b244c376e1f866927d310..3ad0b336784a69e0c630c5b364731032bae88985 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2015 OpenWrt.org
 #
index 192c91bf2dd81ae4802fcc56d1fb5b600d038ec0..c5cd905828652958bf6c126cc996338efa70e0e3 100644 (file)
@@ -1,9 +1,7 @@
-#!/bin/sh
-
 do_arc() {
-        . /lib/arc.sh
+       . /lib/arc.sh
 
-        arc_board_detect
+       arc_board_detect
 }
 
 boot_hook_add preinit_main do_arc
index 192c91bf2dd81ae4802fcc56d1fb5b600d038ec0..c5cd905828652958bf6c126cc996338efa70e0e3 100644 (file)
@@ -1,9 +1,7 @@
-#!/bin/sh
-
 do_arc() {
-        . /lib/arc.sh
+       . /lib/arc.sh
 
-        arc_board_detect
+       arc_board_detect
 }
 
 boot_hook_add preinit_main do_arc
old mode 100755 (executable)
new mode 100644 (file)
index ea38925..19a63e1
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2014 OpenWrt.org
 #
index 5c981016a408476b40d8ddb8f8062b6e1b5fdf4f..c8123295681a2ec3cfdf6ca7442b16c55a42278a 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 do_at91() {
        . /lib/at91.sh
 
index bd46cb908411eaf285a38e3ffbe393c1939b9e4e..6b77f393a98cdf1b6356c5d80b906d1ea48af4fd 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 # reset button only supported on ar5315+ at the moment
 preinit_ip() {
        if [ -z "$pi_ifname" ]; then
index cffc2e6c4b4e029b71f7223c8a87ae55a2b1a1b9..1c7ecba5f862cd00b1a349d283b6456c9ee90a4c 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index 085ad2e9251180a24247e5fb658f9adab6d335c7..74c608b96dc9295fafd6781c1d435908153c476a 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 . /lib/functions.sh
 
 fix_seama_header() {
old mode 100755 (executable)
new mode 100644 (file)
index 1158df8..f16734f
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2018 Weijie Gao <hackpascal@gmail.com>
 #
index 59fd36b2e9a9c6eeba4225dc76be57451a384701..61577a376b402a20467b46d70c8ecbe534f42943 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 
 preinit_set_mac_address() {
index 1a7b371a9979cd307135cbc26dd56ec422ebc4d7..c12a7ac02cbe2fcf002239253303d4a6a09d25c9 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index de221ae7ad381141c7f54de16fc82172b48d047c..269465e301de989e5e616ea213417b9152b6e30f 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2015-2016 OpenWrt.org
 # Copyright (C) 2017 LEDE project
 
index b8738b645ed74ecfe7593c5337a83e251b9570a4..c9fb59a64fe62e3fa9ca69d688a10f820c077d2a 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2015 OpenWrt.org
 
 . /lib/upgrade/common.sh
index e430b41d489d9de88c52da5c28abafc54bb12ce6..3b380e047ac04e91e8f7af1cdfd4fc521c5ee0cf 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2014-2015 OpenWrt.org
 #
index 346a53299871ce13b8d6e85badf84244d82d9f2d..e9104a51cb4b3a9c858d59368e3f8eb079ca66fc 100644 (file)
@@ -1,7 +1,5 @@
-#!/bin/sh
 #
 # Copyright (C) 2007 OpenWrt.org
 #
-#
 
 mtd fixtrx firmware
index 8c7bd399da84932af7c9b289ffabacc6c162a283..7cd0da5aaba79acc5dd265eac5ec6dd8adcb2f9b 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 do_sysinfo_bcm47xx() {
        local boardtype="$(nvram get boardtype)"
        local boardnum="$(nvram get boardnum)"
index 16793ffa6b2afa23296c7c6df72202ec1b2d5ef1..eae84bb771b82dcd631f69ae5ae60cd8b5987361 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kernel\|linux\)".*/\1/p' /proc/mtd)
 
 mtd ${kernel_size:+-c 0x$kernel_size} fixtrx firmware && exit 0
index fdb5ddec724786dc3297c96cb5b173f9500b59e7..6c61f7d38cf4dfa47501ac0c357f11504fe0bacf 100644 (file)
@@ -1,8 +1,6 @@
-#!/bin/sh
 #
 # Copyright (C) 2007 OpenWrt.org
 #
-#
 
 . /lib/functions.sh
 
index 877f9f8749bdd7d89779117f4e26be41f95d89c1..ec694c4f7a8b87cc3352ce5624f54afc8f7618eb 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 CNS3XXX_BOARD_NAME=
 CNS3XXX_MODEL=
 
index cc7b5551e92bae69dfc4f6fc1e5419ed99d51e70..155fee42e0a370789729b92e716d2cd08575210a 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 do_sysinfo_cns3xxx() {
        . /lib/cns3xxx.sh
 
index 5f79d1a65caa8ecd47f83516bddf32c558b2cfae..3acf20db5f465905cb0546bef55f7bf31149812c 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2019 OpenWrt.org
 #
index 3712975fa8be0a12e9f5917690a84f5005188d10..07edd85b524244e3af353ac8b9117902e3def501 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/system.sh
 
old mode 100755 (executable)
new mode 100644 (file)
index 63fff0f..a9fd0ca
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2010-2013 OpenWrt.org
 #
index 0a91aed010427d850f1a817d665cd98b8eb924f4..73f9e596b2094e5f983506f48d6f3fbed13b9536 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 do_sysinfo_imx6() {
        . /lib/imx6.sh
 
index bdf397c4fc076e855d306e13a23759ff40c64bd6..7e30292049daf470855fb739e501462fba6a838b 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/imx6.sh
 . /lib/functions.sh
 . /lib/upgrade/common.sh
index f9ec8ab055cba52fb41dee228a52efc083168a61..4d8113698efcefb72cf348030355874b4a902ecb 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 
 preinit_set_mac_address() {
index 42667d2dfb060e50f22c949ca6012d24f6dcf96d..50c289df31d33de1a7ea4970cc927beb75d3bc72 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 set_preinit_iface() {
        . /lib/functions.sh
 
index 77fa65e60e2105371bcb1d54c542c32a90747dc6..6a51de4ee3df508565cd4acd5e5eb2a6bed96f22 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2018 OpenWrt.org
 #
 
index b1e7be6bd2db50e64ec05216bbd3314b866ecb34..961e39ee611c5ef9e26f48d5ba3325210f5cc76d 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2013 OpenWrt.org
 #
index dd57ca6d399a221cb992c3af9d393fb2bec1bd95..2a87d0df702c7b183635f10ee69e41261645beaf 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 
 IFNAME_CHANGED=0
index c4feec42bc2453a119dc961e95152ea68d853006..141aac8a6d7a911c6ac9c9af4721886089262bee 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 reorder_layerscape_interfaces() {
        if [ ! -f /tmp/sysinfo/board_name ]; then
                echo "No board name found, not doing reorder_layerscape_interfaces"
index 013023295bfe7dea3ec8be18d1ce1d3d623f7a6b..1e1e28987bc93893d7adb0fcd3675465e07c06f1 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright 2015-2019 Traverse Technologies
 #
index eb0bed860787393090982fdfa69c2772556f6fc7..8d282818c626d6d8034f1ebac62267d911b06701 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 set_preinit_iface() {
        ifconfig eth0 up
        ifname=lan1
index 9a84ff4bf5d211122cdfb68604f448861dbed9b6..49b1dd1ca6fb9dcb968df052bc3b6cb89e4ed6c1 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 set_rps_sock_flow() {
        echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
 }
index 7a73a2d84d548780ae999ebf216d313feacd525d..f64458526f0906f34b15707dc065a8c98960200c 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2018 OpenWrt.org
 
 RECOVERY_PART=/dev/mmcblk0p1
index 617336583ee37a4ae4d89b308f77564e35613dd0..895240a3bc5d2374d01fee435272d63c732d48f0 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2015 OpenWrt.org
 
 . /lib/upgrade/common.sh
index 195be0e137de6953ed922f48706fcfdaeb5e8710..e63fcf9a6a910d1162bf52fdb7e2af1d24db38a1 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2015 OpenWrt.org
 
 . /lib/functions.sh
index 79c74626f5237bcf9418b80b7b955ea5471e219a..91bcbba253ce3bc97771e6a5ab286c411312b07f 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2015 OpenWrt.org
 #
index 29c447d8408bbe3e888fc8828a9e355d46189d60..3ce9b68523193851a85aca33ba88af913ab41b8f 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2017 LEDE-Project.org
 #
index a4130e26d848afba70787fa6bfaa2f9addb3ad7c..866bef495b4d1cd3f4e8bdf10801a2903d660f0f 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2014 OpenWrt.org
 
 move_config() {
index 74caee8a8a71ff8021af6cd7496e0d191042afff..f5bbb47310765c41e2e02d49a364e83e074e4822 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2012-2015 OpenWrt.org
 
 move_config() {
index 482659a2f695c526977b84c53be3ace43d5e3247..f2408f8f3e6580b31a54bfe84635fb9c816c8744 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (C) 2012 OpenWrt.org
 #
index ba1a0df7e6c332737ca67ac9e58cff0e9fb496cc..16ccd5cfef2d429403c0094d6337884a3f332fe3 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index 1248dcec0f690b583b331e5ccf2485f67fee1c6d..f9cf3eae0a034f9160960f51b56e19aa3fb806bf 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index 3f9f615c10bbfbe8fea70e9bda63095e55f142ac..44815b2ddc587c6951caee89f8f636d51905c88c 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index b1a94bf81b534b298decd106d8eec5fa777d018e..1009154cac4f219fd5f2293d5faf55d0160a1ad4 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 . /lib/functions/migrations.sh
 
index 9a2361d05718e11c718c63f0f8da3f720037fc6e..e2e08937a32f4de2f80e51ec1241d356c2800f53 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 # Netgear WNCE2001 has does a checksum check on boot and goes into recovery
 # tftp mode when the check fails.  Initializing the JFFS2 partition triggers
 # this, so we make sure to zero checksum and size to be checksummed before
index e2aef5f1f266344e999f4340e2faa708e3c45a4c..62927ff974f754974f8c4cd36eba6b0671f620cb 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 # Netgear WNCE2001 has does a checksum check on boot and goes into recovery
 # tftp mode when the check fails.  Initializing the JFFS2 partition triggers
 # this, so we make sure to zero checksum and size to be checksummed before
index ac484f621045f6ec18128b4df53eb80180599ba2..e57e354102e5bfbe394bb88cfc46a510fb3e2355 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2010 OpenWrt.org
 
 do_mount_xenfs() {
index fb309c75c115c16436209f0f69df0c3f491bd19e..9db3b58adaa5b5be8fcf9b7591416ae402f211fc 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2018 OpenWrt.org
 
 do_load_x86_ucode() {
index 5d5453093f6619caf54eb39efe62cca164c365fb..78501d4956df2bbc9fc345a63835f25594611745 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2010 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 338398c9479dc29ca4b26fa244da9119703fba52..444cd75e44f7bffc546630cd657a35a8ff3eacdf 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2012-2015 OpenWrt.org
 
 move_config() {
index 1379c9b2cb9bd1bbfaad14f8206a4013197fdf0d..42f04d76a7ec064d9b660cd8f0006da77324947b 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 upgrade_bootloader() {
        local diskdev
 
index ac484f621045f6ec18128b4df53eb80180599ba2..e57e354102e5bfbe394bb88cfc46a510fb3e2355 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2010 OpenWrt.org
 
 do_mount_xenfs() {