#!/bin/sh

set -e 

# Source debconf library.
. /usr/share/debconf/confmodule
                     
# /proc/net/igmp is present only in a multicast kernel
if uname | grep -q Linux && [ -d /proc/net -a ! -f /proc/net/igmp ]
then
    db_input medium libslp1/multicast || true
    db_go
fi

# Check for multicast route, 
# Disabled for now because it's not clear whether multicast route is really
# needed.
if ! netstat -rn | grep "224\.0\.0\.0" >/dev/null && false
then
    db_input medium libslp1/multicast-route || true
    db_go
fi

