aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-06 23:13:41 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-16 14:26:33 +0200
commit48c1fdd046f409fd5e28932f1d53343fa214fbc4 (patch)
treedbb50ccfc798d6cdd615c138a9fccdc8d04186d5 /target/linux/mediatek
parentb7a8a5454226f34256c5d76480dda5abb1308395 (diff)
downloadupstream-48c1fdd046f409fd5e28932f1d53343fa214fbc4.tar.gz
upstream-48c1fdd046f409fd5e28932f1d53343fa214fbc4.tar.bz2
upstream-48c1fdd046f409fd5e28932f1d53343fa214fbc4.zip
treewide: drop shebang from non-executable target files
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>
Diffstat (limited to 'target/linux/mediatek')
-rw-r--r--target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface2
-rw-r--r--target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow2
-rw-r--r--target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac1
-rw-r--r--target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config1
4 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
index eb0bed8607..8d282818c6 100644
--- a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
+++ b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface
@@ -1,5 +1,3 @@
-#!/bin/sh
-
set_preinit_iface() {
ifconfig eth0 up
ifname=lan1
diff --git a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow b/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
index 9a84ff4bf5..49b1dd1ca6 100644
--- a/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
+++ b/target/linux/mediatek/base-files/lib/preinit/06_set_rps_sock_flow
@@ -1,5 +1,3 @@
-#!/bin/sh
-
set_rps_sock_flow() {
echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
}
diff --git a/target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac b/target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac
index 7a73a2d84d..f64458526f 100644
--- a/target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac
+++ b/target/linux/mediatek/mt7623/base-files/lib/preinit/07_set_iface_mac
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2018 OpenWrt.org
RECOVERY_PART=/dev/mmcblk0p1
diff --git a/target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config b/target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config
index 617336583e..895240a3bc 100644
--- a/target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config
+++ b/target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
. /lib/upgrade/common.sh