treewide: drop shebang from non-executable lib files
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 25 Jan 2021 11:48:42 +0000 (12:48 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 29 Jan 2021 13:29:41 +0000 (14:29 +0100)
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>
23 files changed:
package/base-files/files/lib/functions/leds.sh
package/base-files/files/lib/functions/migrations.sh
package/base-files/files/lib/functions/preinit.sh
package/base-files/files/lib/functions/uci-defaults.sh [changed mode: 0755->0644]
package/base-files/files/lib/preinit/02_default_set_state
package/base-files/files/lib/preinit/10_indicate_failsafe
package/base-files/files/lib/preinit/10_indicate_preinit
package/base-files/files/lib/preinit/30_failsafe_wait
package/base-files/files/lib/preinit/40_run_failsafe_hook
package/base-files/files/lib/preinit/50_indicate_regular_preinit
package/base-files/files/lib/preinit/70_initramfs_test
package/base-files/files/lib/preinit/80_mount_root
package/base-files/files/lib/preinit/99_10_failsafe_login
package/base-files/files/lib/preinit/99_10_run_init
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/nand.sh
package/system/uci/Makefile
package/system/uci/files/lib/config/uci.sh
package/system/urandom-seed/Makefile
package/system/urandom-seed/files/lib/preinit/81_urandom_seed
target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
target/linux/mediatek/mt7622/base-files/lib/preinit/79_move_config
target/linux/tegra/base-files/lib/preinit/79_move_config

index 57862a1..591e810 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2013 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
old mode 100755 (executable)
new mode 100644 (file)
index 2f50cd6..134c527
@@ -1,5 +1,3 @@
-#!/bin/ash
-
 . /lib/functions.sh
 . /usr/share/libubox/jshn.sh
 
index a2c2c38..f90de71 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2010 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 8504e34..c5aae98 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index a15c972..3f75411 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index b4f0ec2..ebf77b0 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index c28bae4..968893e 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 RAM_ROOT=/tmp/root
 
 export BACKUP_FILE=sysupgrade.tgz      # file extracted by preinit
index 4f77cf2..fca800a 100644 (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
index 1e85ced..8d32cd1 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Shell script compatibility wrappers for /sbin/uci
 #
 # Copyright (C) 2008-2010  OpenWrt.org
index 7cb7c72..7c5524a 100644 (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
index d17e734..ff1c7c1 100644 (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
-