#!/bin/bash #if [ -n "${oldip}" -a "${oldip}" != "${IPADDR}" ]; then if [ -f "/etc/motd" -a "${oldip}" != "${IPADDR}" ]; then echo "toto\n" fi