#!/bin/sh # Moody Teas AIM - point the AIM client's built-in news ticker and AIM Today window # at our server instead of AOL's (which has been off since 2017). # # It adds these lines to /etc/hosts and nothing else: # 192.64.116.175 headlines.aim.aol.com # 192.64.116.175 aimtoday.aol.com # 192.64.116.175 search.aol.com # 192.64.116.175 aim.aol.com # 192.64.116.175 www.aim.com # 192.64.116.175 dynamic.aol.com # 192.64.116.175 www.aol.com # # Undo any time: sudo sed -i '' '/moodyteas-aim/d' /etc/hosts set -e if [ "$(id -u)" != "0" ]; then echo "Run it with sudo: curl -fsSL https://aim.moodyteas.net/setup.sh | sudo sh" exit 1 fi for HOST in headlines.aim.aol.com aimtoday.aol.com search.aol.com aim.aol.com www.aim.com dynamic.aol.com www.aol.com; do if grep -q "$HOST" /etc/hosts; then echo "already set: $HOST" else echo "192.64.116.175 $HOST # moodyteas-aim" >> /etc/hosts echo "added: $HOST" fi done echo "" echo "Done. Restart AIM, then turn the ticker on:" echo " My AIM > News Ticker (or Preferences > Display Ticker at Signon)"