diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-05-22 02:14:02 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-05-22 02:14:02 +0000 |
commit | c25412ecc0a34d5a2fd987a0ec17ed62d335916a (patch) | |
tree | 8152184c07ac17db568cb721813c0f0de9170263 /net/freenet6/files | |
parent | Switch to USE_BZIP2 for bandwidith reasons, and also because certain GNOME (diff) |
From submitter:
I've noticed that on some 'unsymmetric' locales/charsets, the
lower/uppercase conversion in the tspc-scripts fails on FreeBSD
5.x (caused by tr being changed to behave posixly correct). The
fix is easy, see attached patch.
Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
Notes
Notes:
svn path=/head/; revision=109677
Diffstat (limited to 'net/freenet6/files')
-rw-r--r-- | net/freenet6/files/patch-template-freebsd4.sh | 13 | ||||
-rw-r--r-- | net/freenet6/files/patch-template-freebsd44.sh | 13 |
2 files changed, 22 insertions, 4 deletions
diff --git a/net/freenet6/files/patch-template-freebsd4.sh b/net/freenet6/files/patch-template-freebsd4.sh index daf81264e817..d2c5d2696062 100644 --- a/net/freenet6/files/patch-template-freebsd4.sh +++ b/net/freenet6/files/patch-template-freebsd4.sh @@ -1,8 +1,17 @@ --- template/freebsd4.sh.orig Thu Oct 11 16:40:29 2001 +++ template/freebsd4.sh Thu Oct 11 16:40:48 2001 -@@ -110,6 +110,9 @@ +@@ -92,7 +92,7 @@ + fi + + #change to upper case +-TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr a-z A-Z` ++TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr [:lower:] [:upper:]` + + if [ X"${TSP_HOST_TYPE}" = X"HOST" ] || [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then + # +@@ -122,6 +122,9 @@ # Delete any default IPv6 route first - Exec $route delete -inet6 default + ExecNoCheck $route delete -inet6 default Exec $route add -inet6 default -interface $TSP_TUNNEL_INTERFACE + + # Save interface for later diff --git a/net/freenet6/files/patch-template-freebsd44.sh b/net/freenet6/files/patch-template-freebsd44.sh index 10f07f462f55..290c6647693e 100644 --- a/net/freenet6/files/patch-template-freebsd44.sh +++ b/net/freenet6/files/patch-template-freebsd44.sh @@ -8,7 +8,16 @@ ifconfig=/sbin/ifconfig route=/sbin/route rtadvd=/usr/sbin/rtadvd -@@ -104,7 +103,7 @@ +@@ -89,7 +88,7 @@ + fi + + #change to upper case +-TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr a-z A-Z` ++TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr [:lower:] [:upper:]` + + if [ X"${TSP_HOST_TYPE}" = X"HOST" ] || [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then + # +@@ -103,7 +102,7 @@ Exec $ifconfig $TSP_TUNNEL_INTERFACE destroy fi Exec $ifconfig $TSP_TUNNEL_INTERFACE create @@ -17,7 +26,7 @@ # # Configured tunnel config (IPv6) -@@ -118,6 +117,9 @@ +@@ -117,6 +116,9 @@ # Delete any default IPv6 route first ExecNoCheck $route delete -inet6 default Exec $route add -inet6 default $TSP_SERVER_ADDRESS_IPV6 |