diff --git a/usr/lib/security-misc/apt-get-update-sanity-test b/usr/lib/security-misc/apt-get-update-sanity-test new file mode 100755 index 0000000..6ac93a5 --- /dev/null +++ b/usr/lib/security-misc/apt-get-update-sanity-test @@ -0,0 +1,12 @@ +#!/bin/bash + +## This file is part of Whonix. +## Copyright (C) 2012 - 2014 Patrick Schleizer +## See the file COPYING for copying conditions. + +set -x +set -e +set -o pipefail + +wc -L "/var/lib/apt/lists/"*InRelease +wc -L "/var/lib/apt/lists/"*InRelease | awk '$1 > 1024 {print; exit 1}'