diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2022-09-26 09:57:43 +0100 |
---|---|---|
committer | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2022-09-26 17:58:32 +0100 |
commit | dafa6630125ce92967792d177b02c38b8e64e293 (patch) | |
tree | b30eda76f06d9c35ef1a42cb967eee8e17d7dc22 /package/libs/sysfsutils | |
parent | 4ed90e84f87e8284cb98d0ed99de041a8a4cde35 (diff) | |
download | upstream-dafa6630125ce92967792d177b02c38b8e64e293.tar.gz upstream-dafa6630125ce92967792d177b02c38b8e64e293.tar.bz2 upstream-dafa6630125ce92967792d177b02c38b8e64e293.zip |
sysfsutils: Define START early in file
The luci ucode rewrite exposed the definition of START as being over 1K
from start of file. Initial versions limited the search for START &
STOP to within the 1st 1K of a file. Whilst the search has been
expanded, it doesn't do any harm to define START early in the file like
all other init scripts seen so far.
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/libs/sysfsutils')
-rw-r--r-- | package/libs/sysfsutils/Makefile | 2 | ||||
-rw-r--r-- | package/libs/sysfsutils/files/sysfsutils | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/package/libs/sysfsutils/Makefile b/package/libs/sysfsutils/Makefile index 8ce9a40f91..ff676308da 100644 --- a/package/libs/sysfsutils/Makefile +++ b/package/libs/sysfsutils/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sysfsutils PKG_VERSION:=2.1.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/linux-diag diff --git a/package/libs/sysfsutils/files/sysfsutils b/package/libs/sysfsutils/files/sysfsutils index 0305ca82a9..3c5b35e78d 100644 --- a/package/libs/sysfsutils/files/sysfsutils +++ b/package/libs/sysfsutils/files/sysfsutils @@ -4,6 +4,8 @@ # Based on Debian's script /etc/init.d/sysfsutils by # Martin Pitt <mpitt@debian.org> +START=11 + load_conffile() { FILE="$1" sed 's/#.*$//; /^[[:space:]]*$/d; @@ -39,7 +41,6 @@ load_conffile() { } } -START=11 start() { for file in /etc/sysfs.conf /etc/sysfs.d/*.conf; do [ -r "$file" ] || continue |