diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-08 14:13:13 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-08 14:13:13 +0100 |
commit | fe32e82bce354ffd2832acb39c253f90a9ffb5b9 (patch) | |
tree | 2d7a233e7e5599987f9548cadfde73954330e192 /test/networkless-install-fixes/test.sh | |
parent | 1b7fe0e12c7553e0efc90ca6922caecb8d5cbb07 (diff) | |
parent | 87123e9d81225376f089b0172d0689c1b0413f4f (diff) |
merged from apt--mvo
Diffstat (limited to 'test/networkless-install-fixes/test.sh')
-rwxr-xr-x | test/networkless-install-fixes/test.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/networkless-install-fixes/test.sh b/test/networkless-install-fixes/test.sh new file mode 100755 index 000000000..809d467ba --- /dev/null +++ b/test/networkless-install-fixes/test.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +OPTS="-o Dir::Etc::sourcelist=./sources.test.list -o Acquire::http::timeout=20" + +# setup +unset http_proxy +iptables --flush + +echo "No network at all" +ifdown eth0 +time apt-get update $OPTS 2>&1 |grep system +ifup eth0 +echo "" + +echo "no working DNS (port 53 DROP)" +iptables -A OUTPUT -p udp --dport 53 -j DROP +time apt-get update $OPTS 2>&1 |grep system +iptables --flush +echo "" + +echo "DNS but no access to archive.ubuntu.com (port 80 DROP)" +iptables -A OUTPUT -p tcp --dport 80 -j DROP +time apt-get update $OPTS 2>&1 |grep system +iptables --flush +echo "" |