From cd2a7788c9d2fcf3dc8322603505bc28bcdb522b Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Tue, 20 Oct 2009 14:13:53 +0000 Subject: [PATCH] Merge setup-nsssysinit.sh improvements from F-12 (#527051) --- setup-nsssysinit.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup-nsssysinit.sh b/setup-nsssysinit.sh index 5512684..9c1727b 100755 --- a/setup-nsssysinit.sh +++ b/setup-nsssysinit.sh @@ -35,8 +35,7 @@ case "$1" in on | ON ) cat ${p11conf} | \ sed -e 's/^library=$/library=libnsssysinit.so/' \ - -e '/^NSS/s/Flags=internal,critical/Flags=internal,moduleDBOnly,critical/' \ - -e '/^NSS/s/Flags=internal,FIPS,critical/Flags=internal,moduleDBOnly,FIPS,critical/' > \ + -e '/^NSS/s/\(Flags=internal\)\(,[^m]\)/\1,moduleDBOnly\2/' > \ ${p11conf}.on mv ${p11conf}.on ${p11conf} ;; @@ -46,8 +45,7 @@ case "$1" in fi cat ${p11conf} | \ sed -e 's/^library=libnsssysinit.so/library=/' \ - -e '/^NSS/s/Flags=internal,moduleDBOnly,critical/Flags=internal,critical/' \ - -e '/^NSS/s/Flags=internal,moduleDBOnly,FIPS,critical/Flags=internal,FIPS,critical/' > \ + -e '/^NSS/s/Flags=internal,moduleDBOnly/Flags=internal/' > \ ${p11conf}.off mv ${p11conf}.off ${p11conf} ;;