diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-07 13:33:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-07 13:33:15 +0000 |
commit | 03bbda68407e6d5a684f04b5a3154fe1cf340c00 (patch) | |
tree | 228120a68705fae4555c4c82f16f87e69eb59842 /package/network/ipv6/6in4/files/6in4.sh | |
parent | d09ab54291924a1ff4b904588fe81aefa34b1581 (diff) | |
download | master-187ad058-03bbda68407e6d5a684f04b5a3154fe1cf340c00.tar.gz master-187ad058-03bbda68407e6d5a684f04b5a3154fe1cf340c00.tar.bz2 master-187ad058-03bbda68407e6d5a684f04b5a3154fe1cf340c00.zip |
6in4: don't use /dev/stdout for wget calls
Busybox ash does not implement /dev/stdout, therfore any wget output
is written into a file /dev/stdout instead of onto the standard output.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44301 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/6in4/files/6in4.sh')
-rwxr-xr-x | package/network/ipv6/6in4/files/6in4.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/ipv6/6in4/files/6in4.sh b/package/network/ipv6/6in4/files/6in4.sh index f639a5de8e..00b6e3550d 100755 --- a/package/network/ipv6/6in4/files/6in4.sh +++ b/package/network/ipv6/6in4/files/6in4.sh @@ -1,6 +1,6 @@ #!/bin/sh # 6in4.sh - IPv6-in-IPv4 tunnel backend -# Copyright (c) 2010-2014 OpenWrt.org +# Copyright (c) 2010-2015 OpenWrt.org [ -n "$INCLUDE_ONLY" ] || { . /lib/functions.sh @@ -68,7 +68,7 @@ proto_6in4_setup() { local http="http" local urlget="wget" - local urlget_opts="-qO/dev/stdout" + local urlget_opts="-qO-" local ca_path="${SSL_CERT_DIR-/etc/ssl/certs}" if [ -n "$(which curl)" ]; then @@ -82,7 +82,7 @@ proto_6in4_setup() { if [ "$http" = "http" ] && wget --version 2>&1 | grep -qF "+https"; then urlget="wget" - urlget_opts="-qO/dev/stdout --ca-directory=$ca_path" + urlget_opts="-qO- --ca-directory=$ca_path" http="https" fi [ "$http" = "https" -a -z "$(find $ca_path -name "*.0" 2>/dev/null)" ] && { |