#!/bin/sh
#
# This script is called when ppp connects to the network.
# It pulls in news with slrnpull.
#
# Run slrnpullconfig or edit /etc/news/slrnpull.debian.conf to configure if 
# this file actually does anything.
#
# Written By Joey Hess <joeyh@master.debian.org>

# Source config file.
. /etc/news/slrnpull.debian.conf

# If term is not set to something sane, slrn gets upset.
TERM=vt100
export TERM

# Make sure the umask is sane as well.
umask 022

# Fetch news.
if [ "$SLRNPULL_WITH_PPP" = "y" ] ; then
	# Get new articles.
	slrnpull -h `cat /etc/nntpserver` >/dev/null
fi
