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

« back to all changes in this revision

Viewing changes to tests/check-requirements

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2011-07-18 17:09:57 UTC
  • mfrom: (0.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20110718170957-z7izfiknijlefszw
Tags: 0.30.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/rules: Don't install the upstream application profiles that are
    shipped with the Debian package.
  - debian/control: use ufw-0.30-oneiric for Vcs-Bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# check-requirements: verify all the required iptables functionality is
4
4
# available
5
5
#
6
 
# Copyright 2008-2010 Canonical Ltd.
 
6
# Copyright 2008-2011 Canonical Ltd.
7
7
#
8
8
#    This program is free software: you can redistribute it and/or modify
9
9
#    it under the terms of the GNU General Public License version 3,
87
87
fi
88
88
echo ""
89
89
 
 
90
echo "This script will now attempt to create various rules using the iptables"
 
91
echo "and ip6tables commands. This may result in module autoloading (eg, for"
 
92
echo "IPv6)."
 
93
if [ "$1" != "-f" ]; then
 
94
    echo -n "Proceed with checks (Y/n)? "
 
95
    read ans
 
96
    if [ "$ans" = "n" ] || [ "$ans" = "N" ] || [ "$ans" = "no" ]; then
 
97
        echo "Aborting"
 
98
        exit 1
 
99
    fi
 
100
fi
 
101
 
90
102
# check modules
91
103
for i in "" 6; do
92
104
    exe="iptables"