# is done. It gets two arguments:
# 1 - the original file
# 2 - the new edit from the user
+# 3 - the calling username (can be used for logging. Nice for sudo users)
RDNSSCRIPT="${SUDO} /usr/local/bin/dodns"
########################################################################
0)
# Clean exit, means we have something to do
echo "Applying changes, please be patient..."
- ${RDNSSCRIPT} "${dnsfile}" "${dnsedit}"
+ ${RDNSSCRIPT} "${dnsfile}" "${dnsedit}" "${USER}"
;;
*)
# Anything else means we send em to the shredder...