summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/sys.uc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-09-26 10:50:40 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-25 01:03:37 +0200
commit60a9f019780f43a1b9d198451bd20ee8ae66f2aa (patch)
tree7fcf63a9fb165f47201e3028f2ec2b0f33f44185 /modules/luci-base/ucode/sys.uc
parent7e30a5e11e35a9f1f6de68842b3a3f20faf59c17 (diff)
luci-base: sys.uc: increase init script START/STOP search space
Some init scripts, such as the sysfsutils one, declare their START or STOP variables very late in the file. Duplicate the search buffer to 2048 byte in order to catch these cases. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/ucode/sys.uc')
-rw-r--r--modules/luci-base/ucode/sys.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/ucode/sys.uc b/modules/luci-base/ucode/sys.uc
index d4db91a9b9..5bbaa8b19d 100644
--- a/modules/luci-base/ucode/sys.uc
+++ b/modules/luci-base/ucode/sys.uc
@@ -121,7 +121,7 @@ export function init_list() {
};
export function init_index(name) {
- const src = readfile(`/etc/init.d/${basename(name)}`, 1024);
+ const src = readfile(`/etc/init.d/${basename(name)}`, 2048);
const idx = [];
for (let m in match(src, /^[[:space:]]*(START|STOP)=('[0-9][0-9]'|"[0-9][0-9]"|[0-9][0-9])[[:space:]]*$/gs)) {