#!/bin/bash
x=2
while [ $x -ne '0' ] ; do
        x=`ps aux | grep apt-get | grep -v grep | grep -v wait-for-apt | wc -l`
        sleep 1
done
