echo | $wrt_shell cedit mail_host /etc/hosts || [[ $? == 1 ]] # 1 means file changed.
else
$wrt_shell bash -s <<EOFOUTER
- cedit mail_host /etc/hosts <<EOF || /etc/init.d/dnsmasq restart
+ if ! cedit mail_host /etc/hosts <<EOF; then
\$(grep "\b$new_host\b" /etc/hosts | awk '{print \$1}') mail.iankelling.org
EOF
+/etc/init.d/dnsmasq restart
EOFOUTER
fi