Remove ancient cruft in ddns-scripts, and use the busybox built-in wget

git-svn-id: svn://svn.openwrt.org/openwrt/packages@15423 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
noz
2009-04-26 09:49:20 +00:00
parent edbeb47551
commit 8205c42c27
2 changed files with 1 additions and 142 deletions

View File

@ -9,11 +9,6 @@
#
. /usr/lib/ddns/dynamic_dns_functions.sh
. /usr/lib/ddns/shell_get.sh
service_id=$1
@ -90,17 +85,7 @@ fi
#some constants
retrieve_prog="/usr/bin/wget --no-check-certificate -O - ";
if [ -h "/usr/bin/wget" ]
then
busybox_wget=$(ls -l /usr/bin/wget | awk ' { if ($0~/busybox/) { print "BUSYBOX"}} ')
if [ -n "$busybox_wget" ]; then
retrieve_prog="shell_get"
fi
fi
verbose_echo "retrieve_prog=\"$retrieve_prog\""
retrieve_prog="/usr/bin/wget -O - ";
service_file="/usr/lib/ddns/services"
ip_regex="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"