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>
This commit is contained in:
Adrian Schmutzler 2021-01-25 12:48:42 +01:00
parent 2c35899d81
commit 331892f85f
23 changed files with 2 additions and 33 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2013 OpenWrt.org
get_dt_led_path() {

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /lib/functions.sh
migrate_led_sysfs() {

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006-2013 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

2
package/base-files/files/lib/functions/uci-defaults.sh Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/bin/ash
. /lib/functions.sh
. /usr/share/libubox/jshn.sh

View File

@ -1,5 +1,3 @@
#!/bin/sh
define_default_set_state() {
. /etc/diag.sh
}

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006-2010 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006-2015 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

View File

@ -1,5 +1,3 @@
#!/bin/sh
RAM_ROOT=/tmp/root
export BACKUP_FILE=sysupgrade.tgz # file extracted by preinit

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Copyright (C) 2014 OpenWrt.org
#

View File

@ -9,7 +9,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=uci
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uci.git
PKG_SOURCE_PROTO:=git

View File

@ -1,4 +1,3 @@
#!/bin/sh
# Shell script compatibility wrappers for /sbin/uci
#
# Copyright (C) 2008-2010 OpenWrt.org

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=urandom-seed
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-2.0-only
include $(INCLUDE_DIR)/package.mk

View File

@ -1,5 +1,3 @@
#!/bin/sh
log_urandom_seed() {
echo "urandom-seed: $1" > /dev/kmsg
}

View File

@ -1,8 +1,5 @@
#!/bin/sh
set_preinit_iface() {
ifname=eth0
}
boot_hook_add preinit_main set_preinit_iface

View File

@ -1,5 +1,3 @@
#!/bin/sh
. /lib/upgrade/common.sh
RECOVERY_PART=/dev/mmcblk0p6

View File

@ -1,5 +1,3 @@
#!/bin/sh
move_config() {
local partdev
@ -19,4 +17,3 @@ move_config() {
}
boot_hook_add preinit_mount_root move_config