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:
		| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2013 OpenWrt.org | ||||
|  | ||||
| get_dt_led_path() { | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| . /lib/functions.sh | ||||
|  | ||||
| migrate_led_sysfs() { | ||||
|   | ||||
| @@ -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
									
								
							
							
						
						
									
										2
									
								
								package/base-files/files/lib/functions/uci-defaults.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @@ -1,5 +1,3 @@ | ||||
| #!/bin/ash | ||||
|  | ||||
| . /lib/functions.sh | ||||
| . /usr/share/libubox/jshn.sh | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| define_default_set_state() { | ||||
| 	. /etc/diag.sh | ||||
| } | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006-2010 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006-2010 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006-2015 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2006 OpenWrt.org | ||||
| # Copyright (C) 2010 Vertical Communications | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| RAM_ROOT=/tmp/root | ||||
|  | ||||
| export BACKUP_FILE=sysupgrade.tgz	# file extracted by preinit | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Copyright (C) 2014 OpenWrt.org | ||||
| # | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #!/bin/sh | ||||
| # Shell script compatibility wrappers for /sbin/uci | ||||
| # | ||||
| # Copyright (C) 2008-2010  OpenWrt.org | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| log_urandom_seed() { | ||||
|     echo "urandom-seed: $1" > /dev/kmsg | ||||
| } | ||||
|   | ||||
| @@ -1,8 +1,5 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| set_preinit_iface() { | ||||
| 	ifname=eth0 | ||||
| } | ||||
|  | ||||
| boot_hook_add preinit_main set_preinit_iface | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| . /lib/upgrade/common.sh | ||||
|  | ||||
| RECOVERY_PART=/dev/mmcblk0p6 | ||||
|   | ||||
| @@ -1,5 +1,3 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| move_config() { | ||||
| 	local partdev | ||||
|  | ||||
| @@ -19,4 +17,3 @@ move_config() { | ||||
| } | ||||
|  | ||||
| boot_hook_add preinit_mount_root move_config | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Adrian Schmutzler
					Adrian Schmutzler