From d5c18400485f3806d399cce8666b7b6fbc798f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20V=C3=A4th?= Date: Fri, 30 Oct 2020 20:29:58 +0100 Subject: [PATCH] Workaround for zsh completion heuristics for init.d scripts --- ChangeLog | 6 ++++++ openrc/init.d/zram-init | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5f2a8b2..582e254 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ # ChangeLog for zram-init: +*zram-init-10.9: + Martin Väth : + - Workaround for zsh completion heuristics for init.d scripts. + Thanks to Holger Hoffstätte . + See https://github.com/vaeth/zram-init/issues/31. + *zram-init-10.8: Martin Väth : - Fix zsh completion https://github.com/vaeth/zram-init/issues/31 diff --git a/openrc/init.d/zram-init b/openrc/init.d/zram-init index 2debae7..a0ef843 100755 --- a/openrc/init.d/zram-init +++ b/openrc/init.d/zram-init @@ -49,7 +49,7 @@ ZramSanityCheck() { } ZramIgnore() { - eval "fstype=\${type$1-} + eval "fstype=\${type$1-} opts=\${opts$1-} size=\${size$1:-0} mlim=\${mlim$1-} back=\${back$1-} @@ -62,7 +62,6 @@ ZramIgnore() { blck=\${blck$1-} irat=\${irat$1-} inod=\${inod$1-} - opts=\${opts$1-} owgr=\${owgr$1-} mode=\${mode$1-} labl=\${labl$1-}