1From 92fcdbc1a57086e4decc1597217c0739dc16342a Mon Sep 17 00:00:00 2001 2From: Silcet <camorga1@gmail.com> 3Date: Tue, 27 Apr 2021 05:34:59 +0000 4Subject: [PATCH] Author: Jamie Strandboge <jamie@canonical.com> 5Description: 6to improve boot speed when disabled, don't source all of ufw-init-functions 7(which also sources in other files). 8 9Upstream-Status: Inappropriate [ not author ] 10 11Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> 12 13The patch was imported from the OpenEmbedded git server 14(git://git.openembedded.org/openembedded) as of commit id 152cc1bd9dd060f5002c2fde7aacba86fe230c12af. 16 17Signed-off-by: Silcet <camorga1@gmail.com> 18--- 19 src/ufw-init | 6 ++++++ 20 1 file changed, 6 insertions(+) 21 22diff --git a/src/ufw-init b/src/ufw-init 23index 3505a02..dde37f0 100755 24--- a/src/ufw-init 25+++ b/src/ufw-init 26@@ -31,6 +31,12 @@ if [ "$1" = "--datadir" ] && [ -s "$2" ]; then 27 fi 28 export DATA_DIR="$datadir" 29 30+# Debian/Ubuntu: small boot speed improvement 31+. "#CONFIG_PREFIX#/ufw/ufw.conf" 32+if [ "$1" = "start" ] && [ "$2" = "quiet" ] && [ "$ENABLED" = "no" ]; then 33+ exit 0 34+fi 35+ 36 if [ -s "${rootdir}#STATE_PREFIX#/ufw-init-functions" ]; then 37 . "${rootdir}#STATE_PREFIX#/ufw-init-functions" 38 else 39