]>
git.saurik.com Git - apt.git/blob - test/networkless-install-fixes/test.sh
3 OPTS
="-o Dir::Etc::sourcelist=./sources.test.list -o Acquire::http::timeout=20"
9 echo "No network at all"
11 time apt
-get update
$OPTS 2>&1 |grep system
15 echo "no working DNS (port 53 DROP)"
16 iptables
-A OUTPUT
-p udp
--dport 53 -j DROP
17 time apt
-get update
$OPTS 2>&1 |grep system
21 echo "DNS but no access to archive.ubuntu.com (port 80 DROP)"
22 iptables
-A OUTPUT
-p tcp
--dport 80 -j DROP
23 time apt
-get update
$OPTS 2>&1 |grep system