aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions
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 /package/base-files/files/lib/functions
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 'package/base-files/files/lib/functions')
-rw-r--r--package/base-files/files/lib/functions/leds.sh1
-rw-r--r--package/base-files/files/lib/functions/migrations.sh2
-rw-r--r--package/base-files/files/lib/functions/preinit.sh1
-rw-r--r--[-rwxr-xr-x]package/base-files/files/lib/functions/uci-defaults.sh2
4 files changed, 0 insertions, 6 deletions
diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files/lib/functions/leds.sh
index 14baeb37b4..a7532faa2f 100644
--- a/package/base-files/files/lib/functions/leds.sh
+++ b/package/base-files/files/lib/functions/leds.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2013 OpenWrt.org
get_dt_led_path() {
diff --git a/package/base-files/files/lib/functions/migrations.sh b/package/base-files/files/lib/functions/migrations.sh
index d2f1bc19aa..d43ea35051 100644
--- a/package/base-files/files/lib/functions/migrations.sh
+++ b/package/base-files/files/lib/functions/migrations.sh
@@ -1,5 +1,3 @@
-#!/bin/sh
-
. /lib/functions.sh
migrate_led_sysfs() {
diff --git a/package/base-files/files/lib/functions/preinit.sh b/package/base-files/files/lib/functions/preinit.sh
index 57862a11f3..591e810af9 100644
--- a/package/base-files/files/lib/functions/preinit.sh
+++ b/package/base-files/files/lib/functions/preinit.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006-2013 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 2f50cd6bfd..134c527d8d 100755..100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -1,5 +1,3 @@
-#!/bin/ash
-
. /lib/functions.sh
. /usr/share/libubox/jshn.sh