From: Uli Martens Date: Sun, 2 Dec 2012 20:50:06 +0000 (+0100) Subject: use xzcat to unpack kernel image, not lzcat X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=73c7a7ba4815d3691cc2a4a3e4d7afd43e0700ed;p=mirror%2Fdsa-nagios.git use xzcat to unpack kernel image, not lzcat Signed-off-by: Martin Zobel-Helas --- diff --git a/dsa-nagios-checks/checks/dsa-check-running-kernel b/dsa-nagios-checks/checks/dsa-check-running-kernel index 0ff3ed3..a5874dc 100755 --- a/dsa-nagios-checks/checks/dsa-check-running-kernel +++ b/dsa-nagios-checks/checks/dsa-check-running-kernel @@ -147,7 +147,7 @@ get_image_linux() { off=`get_offset "$image" $LZHDR` [ "$?" != "0" ] && off="-1" if [ "$off" -ne "-1" ]; then - (dd ibs="$[off-1]" skip=1 count=0 && dd bs=512k) < "$image" 2>/dev/null | lzcat 2>/dev/null + (dd ibs="$[off-1]" skip=1 count=0 && dd bs=512k) < "$image" 2>/dev/null | xzcat 2>/dev/null return fi