aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/login
blob: 952594afbe3a6c4c29725e8cda0ca8e5ab184d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#	~/.bash_login
#

#	Start Fetchmail up when I Login.
#
#	TDEV=my PRESENT terminal device IE: ttyp2, tty5, ....
#
export TDEV=`tty | sed -n -e "s#/dev/##p"`
#
if [ ! -s ~/.fetchmail ]; then
    /usr/local/bin/fetchmail -d 300
    echo "owner" >.fetchmail.$TDEV
else
    echo "notowner" >.fetchmail.$TDEV
fi
# END of Fetchmail startup
span class="w"> Name | cut -c7- > /tmp/ip_name if [ ! -s /tmp/ip_name ]; then echo $4 > /tmp/ip_name fi cat /tmp/ip_name > /etc/sendmail.cw paste /tmp/ip /tmp/ip_name /tmp/local_name > /tmp/host_bottom cat /etc/hosts.top /tmp/host_bottom > /etc/hosts rm /tmp/ip /tmp/ip_name /tmp/host_bottom /tmp/local_name # Restart sendmail with new name. kill -HUP `head -1 /var/run/sendmail.pid` # Start fetchmail as root to fetch our mail. fetchmail