]> code.delx.au - osx-proxyconf/blobdiff - proxyconf.sh
Rewrote proxyconf completely in Objective C
[osx-proxyconf] / proxyconf.sh
diff --git a/proxyconf.sh b/proxyconf.sh
deleted file mode 100755 (executable)
index 61b0f50..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-if [ "$(sysconfig -n "HTTPEnable")" -eq 1 ]; then
-       host="$(sysconfig -s "HTTPProxy")"
-       port="$(sysconfig -n "HTTPPort")"
-       echo "export http_proxy=\"http://${host}:${port}\""
-fi
-if [ "$(sysconfig -n "HTTPSEnable")" -eq 1 ]; then
-       host="$(sysconfig -s "HTTPSProxy")"
-       port="$(sysconfig -n "HTTPSPort")"
-       echo "export https_proxy=\"http://${host}:${port}\""
-fi
-if [ "$(sysconfig -n "FTPEnable")" -eq 1 ]; then
-       host="$(sysconfig -s "FTPProxy")"
-       port="$(sysconfig -n "FTPPort")"
-       echo "export ftp_proxy=\"http://${host}:${port}\""
-fi