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>
This commit is contained in:
parent
4ed90e84f8
commit
dafa663012
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=sysfsutils
|
PKG_NAME:=sysfsutils
|
||||||
PKG_VERSION:=2.1.0
|
PKG_VERSION:=2.1.0
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/linux-diag
|
PKG_SOURCE_URL:=@SF/linux-diag
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# Based on Debian's script /etc/init.d/sysfsutils by
|
# Based on Debian's script /etc/init.d/sysfsutils by
|
||||||
# Martin Pitt <mpitt@debian.org>
|
# Martin Pitt <mpitt@debian.org>
|
||||||
|
|
||||||
|
START=11
|
||||||
|
|
||||||
load_conffile() {
|
load_conffile() {
|
||||||
FILE="$1"
|
FILE="$1"
|
||||||
sed 's/#.*$//; /^[[:space:]]*$/d;
|
sed 's/#.*$//; /^[[:space:]]*$/d;
|
||||||
|
@ -39,7 +41,6 @@ load_conffile() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
START=11
|
|
||||||
start() {
|
start() {
|
||||||
for file in /etc/sysfs.conf /etc/sysfs.d/*.conf; do
|
for file in /etc/sysfs.conf /etc/sysfs.d/*.conf; do
|
||||||
[ -r "$file" ] || continue
|
[ -r "$file" ] || continue
|
||||||
|
|
Loading…
Reference in New Issue