sys-kernel/genkernel: Fix dosshd check
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 15 Jul 2019 18:16:50 +0000 (20:16 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 15 Jul 2019 18:17:20 +0000 (20:17 +0200)
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-kernel/genkernel/genkernel-9999.ebuild

index 8cab8f829e7b85f4d76164bce6d203e2e33ad685..9c5882386a2f95095fb953579c5de21c75c34f46 100644 (file)
@@ -212,7 +212,7 @@ pkg_postinst() {
        local gk_config="${EROOT%/}/etc/genkernel.conf"
        if [[ -f "${gk_config}" ]] ; then
                if grep -q -E "^SSH=[\"\']?yes" "${gk_config}" 2>/dev/null ; then
-                       if ! grep -q dosshd "${gk_config}" 2>/dev/null ; then
+                       if ! grep -q dosshd /proc/cmdline 2>/dev/null ; then
                                ewarn ""
                                ewarn "IMPORTANT: SSH is currently enabled in your genkernel config"
                                ewarn "file (${gk_config}). However, 'dosshd' is missing from current"