#!/bin/sh set -e case "$1" in configure) (ping -q -c 3 `grep ^deb\ /etc/apt/sources.list | head -1 | \ cut -s -d\ -f2 | cut -d/ -f3` > /dev/null && \ apt-file update; exit 0) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0