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