Pan
Tomislav Ivan Flis <[email protected]> Sat, 22 Feb 2003 21:52:39 +0000
| Newsgroups | gmane.network.noffle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I'm trying to use noffle but I ran into troubles. Im a newbie conserning Linux
I can fetch froups and posts, but my newsreader don't see them. Why? How to
fix that?
ip-up:
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-up.local instead
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
LOGDEVICE=$6
REALDEVICE=$1
/usr/bin/noffle --fetch
/usr/bin/noffle --online
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
if [ -x /usr/sbin/sendmail ];then
/usr/sbin/sendmail -q 2>/dev/null >/dev/null &
fi
# for dynamic DNS support with gnome-ppp and kppp and draknet
if grep -i '#.*ppp temp entry' /etc/resolv.conf >& /dev/null ; then
PPP_TEMP_ENTRY=`grep '#.*ppp temp entry' /etc/resolv.conf | \
tail -1 | sed 's/.*ppp temp entry/# ppp temp entry/' `
else
unset PPP_TEMP_ENTRY
fi
if [ -n "$PPP_TEMP_ENTRY" ]; then
[ -n "$DNS1" ] && \
echo -e "nameserver $DNS1 $PPP_TEMP_ENTRY" >> /etc/resolv.conf
[ -n "$DNS2" ] && \
echo -e "nameserver $DNS2 $PPP_TEMP_ENTRY" >> /etc/resolv.conf
fi
[ -f /etc/sysconfig/network-scripts/ifcfg-${LOGDEVICE} ] &&
/etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}
[ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@"
exit 0
-----------------------------------
ip-down:
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-down.local instead
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
LOGDEVICE=$6
REALDEVICE=$1
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
mv -f /etc/resolv.conf /etc/resolv.conf.tmp
cat /etc/resolv.conf.tmp | awk '{if(!/nameserver .* # ppp temp entry.*/) print
$0}' > /etc/resolv.conf
chmod 0644 /etc/resolv.conf
rm -f /etc/resolv.conf.tmp
[ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local "$@"
/etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE}
/usr/bin/noffle --offline
exit 0
in /etc/inetd.conf already was:
nntp stream tcp nowait news /usr/sbin/tcpd usr/bin/noffle -r
Help me please!
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge