Files
dnsupdate/ppp-dnsupdate.sh
2015-11-06 00:41:56 +01:00

11 lines
181 B
Bash
Executable File

#!/bin/bash
[ -f "/etc/sysconfig/network-scripts/ifcfg-${6}" ] && . /etc/sysconfig/network-scripts/ifcfg-${6}
if [[ $# -l 6 ]]; then
exit 0
fi
/usr/bin/dnsupdate "${6}" "${4}"