aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
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
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')
-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
-rw-r--r--package/base-files/files/lib/preinit/02_default_set_state2
-rw-r--r--package/base-files/files/lib/preinit/10_indicate_failsafe1
-rw-r--r--package/base-files/files/lib/preinit/10_indicate_preinit1
-rw-r--r--package/base-files/files/lib/preinit/30_failsafe_wait1
-rw-r--r--package/base-files/files/lib/preinit/40_run_failsafe_hook1
-rw-r--r--package/base-files/files/lib/preinit/50_indicate_regular_preinit1
-rw-r--r--package/base-files/files/lib/preinit/70_initramfs_test1
-rw-r--r--package/base-files/files/lib/preinit/80_mount_root1
-rw-r--r--package/base-files/files/lib/preinit/99_10_failsafe_login1
-rw-r--r--package/base-files/files/lib/preinit/99_10_run_init1
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
-rw-r--r--package/base-files/files/lib/upgrade/nand.sh1
16 files changed, 0 insertions, 20 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
diff --git a/package/base-files/files/lib/preinit/02_default_set_state b/package/base-files/files/lib/preinit/02_default_set_state
index df43395726..28d5f1d9f9 100644
--- a/package/base-files/files/lib/preinit/02_default_set_state
+++ b/package/base-files/files/lib/preinit/02_default_set_state
@@ -1,5 +1,3 @@
-#!/bin/sh
-
define_default_set_state() {
. /etc/diag.sh
}
diff --git a/package/base-files/files/lib/preinit/10_indicate_failsafe b/package/base-files/files/lib/preinit/10_indicate_failsafe
index 27b94c140f..7bf5e029e4 100644
--- a/package/base-files/files/lib/preinit/10_indicate_failsafe
+++ b/package/base-files/files/lib/preinit/10_indicate_failsafe
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index 423c425223..3c59929790 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait
index a2c2c386aa..f90de71d40 100644
--- a/package/base-files/files/lib/preinit/30_failsafe_wait
+++ b/package/base-files/files/lib/preinit/30_failsafe_wait
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/40_run_failsafe_hook b/package/base-files/files/lib/preinit/40_run_failsafe_hook
index 533b0a9771..e3f769a858 100644
--- a/package/base-files/files/lib/preinit/40_run_failsafe_hook
+++ b/package/base-files/files/lib/preinit/40_run_failsafe_hook
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/50_indicate_regular_preinit b/package/base-files/files/lib/preinit/50_indicate_regular_preinit
index 5b7523f6fd..f4afcddb44 100644
--- a/package/base-files/files/lib/preinit/50_indicate_regular_preinit
+++ b/package/base-files/files/lib/preinit/50_indicate_regular_preinit
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/70_initramfs_test b/package/base-files/files/lib/preinit/70_initramfs_test
index 8504e34db0..c5aae983c7 100644
--- a/package/base-files/files/lib/preinit/70_initramfs_test
+++ b/package/base-files/files/lib/preinit/70_initramfs_test
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root
index a15c972220..3f75411a43 100644
--- a/package/base-files/files/lib/preinit/80_mount_root
+++ b/package/base-files/files/lib/preinit/80_mount_root
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/99_10_failsafe_login b/package/base-files/files/lib/preinit/99_10_failsafe_login
index 16ad84f4ba..1410c5f0db 100644
--- a/package/base-files/files/lib/preinit/99_10_failsafe_login
+++ b/package/base-files/files/lib/preinit/99_10_failsafe_login
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006-2015 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/preinit/99_10_run_init b/package/base-files/files/lib/preinit/99_10_run_init
index b4f0ec203d..ebf77b0896 100644
--- a/package/base-files/files/lib/preinit/99_10_run_init
+++ b/package/base-files/files/lib/preinit/99_10_run_init
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index c28bae48a1..968893e226 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -1,5 +1,3 @@
-#!/bin/sh
-
RAM_ROOT=/tmp/root
export BACKUP_FILE=sysupgrade.tgz # file extracted by preinit
diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
index ad04bbc753..e6f58df4f5 100644
--- a/package/base-files/files/lib/upgrade/nand.sh
+++ b/package/base-files/files/lib/upgrade/nand.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (C) 2014 OpenWrt.org
#