treewide: drop shebang from non-executable lib files
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 25 Jan 2021 00:00:20 +0000 (01:00 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 25 Jan 2021 17:53:30 +0000 (18:53 +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 14baeb37b49f9f828b129e28d1500bdb6f04ee72..a7532faa2fd553f2ebc6555cad2001fc84297e6f 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2013 OpenWrt.org
 
 get_dt_led_path() {
index d2f1bc19aac055c9475a27d25350eea0eb09cd82..d43ea35051ce5498147c4d58ae5dd43a5b84c36a 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/functions.sh
 
 migrate_led_sysfs() {
index 57862a11f352cefe048063e7bcaa475776c397d5..591e810af90d44ebac5149eea1c48dff231d2337 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 df433957268b9217456eed0bbe1f8adff762faa9..28d5f1d9f940a6caeb90a41e71f649c3b4edd3be 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 define_default_set_state() {
        . /etc/diag.sh
 }
index 27b94c140fb80a12a58f6ce511dd9728c29be710..7bf5e029e42ffaf9cce29924352d4b6faeb4e106 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 423c425223ed0882b355f54eb471b06743f27669..3c59929790168c12d1745c395f171b08b6d06f8a 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index a2c2c386aa3aa5963e01cec640cc32e5858d120b..f90de71d40f2434acdecdfc568423f97abc29229 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2010 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 533b0a9771e1aac603f00ecf7a4622ea9fee969d..e3f769a858413a9ab55d08da67055c9c31c4162c 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2010 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 5b7523f6fd30a33e79cff051af41f3cc40dd39f6..f4afcddb44b3fb5f00b5303380b6a61d684c44fe 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 8504e34db091fc5f10e699f0475c3b0f2efe10c4..c5aae983c7300008bf10e605f1f3ae6a228f6057 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index a15c972220c566b381b35e6095e7a9ee055fe8ae..3f75411a4391c221d0fa00c7f1c0ef566642d14e 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index 16ad84f4bab2f8d1b59278eab27692a14cd304e2..1410c5f0db5fe3d673603ae2ee0e77c10c966986 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006-2015 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index b4f0ec203d3e0ccb32af296f1462ab1b0adaf2f0..ebf77b089680699a5a169e88ddffc7e775e6f86a 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2010 Vertical Communications
 
index c28bae48a15c3f1a0a1dd0449b9d98d9c1eab959..968893e2263512eec73b72f3c27d60efac617c94 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 RAM_ROOT=/tmp/root
 
 export BACKUP_FILE=sysupgrade.tgz      # file extracted by preinit
index ad04bbc753bcdc7fae538a1e31739a3b35d5a042..e6f58df4f5aa016fc191b3858fdc5cd05d698810 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Copyright (C) 2014 OpenWrt.org
 #
 
index 4f77cf2219e2259b37c4ae589d752383c9a1686e..fca800a5414efb748ea0684bf35da53bad57bf4d 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 1e85ced8342b681041b1a83854150c516f3d8830..8d32cd1743267e05a579dd234c5d79f5491be389 100644 (file)
@@ -1,4 +1,3 @@
-#!/bin/sh
 # Shell script compatibility wrappers for /sbin/uci
 #
 # Copyright (C) 2008-2010  OpenWrt.org
index 7cb7c720382d76a2f6f8b7a18f4314a143c60c7e..7c5524a9db89b90045e8fba1acc89529bee28e5e 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 26212c60b5e0f46f910367b8107161a587b6a701..2adc6c47f050b3aca0cc3ec44d43d4b010dc8390 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 log_urandom_seed() {
     echo "urandom-seed: $1" > /dev/kmsg
 }
index 4f7dc6673cd325be47a57251628641f0dc2f6ec5..5f059ee974d124ab2e83c607176521505200ee8d 100644 (file)
@@ -1,8 +1,5 @@
-#!/bin/sh
-
 set_preinit_iface() {
        ifname=eth0
 }
 
 boot_hook_add preinit_main set_preinit_iface
-
index 865a5fb90ccecedec0202541c58e38e8527bb490..8a30b844977be98736df05e9c5310d1c19fb16f8 100644 (file)
@@ -1,5 +1,3 @@
-#!/bin/sh
-
 . /lib/upgrade/common.sh
 
 RECOVERY_PART=/dev/mmcblk0p6
index d17e734ac80f63f38fd306107c15dd8cdab32a91..ff1c7c1ed7834f8af05eaba36805d9e8c07d9125 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
-