~ubuntu-branches/ubuntu/trusty/ufw/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0001-optimize-boot.patch

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2012-04-04 12:12:25 UTC
  • mfrom: (30.1.13)
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: package-import@ubuntu.com-20120404121225-pjt6j7hm3ua0q580
Tags: 0.31.1-1
* New upstream release (Closes: 663677, Closes: 625681)
* debian/control: update to standards 3.9.3
* convert to source format 3.0 (quilt)
* 0001-optimize-boot.patch: only read in /etc/ufw/ufw.conf when disabled
* debian/rules: adjust to only install the application profiles when not
  Ubuntu
* debian/po/nl.po: add Dutch translation of debconf templates. Thanks to
  Jeroen Schot (Closes: 658495)
* debian/po/da.po: add Danish translation of debconf templates. Thanks to
  Joe Dalton (Closes: 666557)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Jamie Strandboge <jamie@canonical.com>
 
2
Description: to improve boot speed when disabled, don't source all of
 
3
 ufw-init-functions (which also sources in other files).
 
4
 
 
5
Index: ufw-0.31/src/ufw-init
 
6
===================================================================
 
7
--- ufw-0.31.orig/src/ufw-init  2012-03-09 17:07:11.000000000 -0600
 
8
+++ ufw-0.31/src/ufw-init       2012-03-17 09:37:51.000000000 -0500
 
9
@@ -18,6 +18,12 @@
 
10
 #
 
11
 set -e
 
12
 
 
13
+# Debian/Ubuntu: small boot speed improvement
 
14
+. "#CONFIG_PREFIX#/ufw/ufw.conf"
 
15
+if [ "$1" = "start" ] && [ "$2" = "quiet" ] && [ "$ENABLED" = "no" ]; then
 
16
+    exit 0
 
17
+fi
 
18
+
 
19
 if [ -s "#STATE_PREFIX#/ufw-init-functions" ]; then
 
20
     . "#STATE_PREFIX#/ufw-init-functions"
 
21
 else