Initial commit.
This commit is contained in:
10
ppp-dnsupdate.sh
Executable file
10
ppp-dnsupdate.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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}"
|
||||
|
||||
Reference in New Issue
Block a user