source: n4d-proxy/trunk/fuentes/scripts/proxy-client/proxy-client-gconf @ 229

Last change on this file since 229 was 229, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/sh
2
3VAR_LIST="PROXY_MODE PROXY_AUTOCONFIG_URL PROXY_HOST PROXY_HTTP_PORT"
4eval `/usr/sbin/llxcfg-showvars ${VAR_LIST}`
5
6if [ "$1" = "start" ] ; then
7   case $PROXY_MODE in
8      auto)
9         gconftool-2 --type string --set /system/proxy/autoconfig_url "$PROXY_AUTOCONFIG_URL"
10         gconftool-2 --type string --set /system/proxy/mode "auto"
11         gconftool-2 --type bool --set /system/http_proxy/use_http_proxy false
12         ;;
13      manual)
14         gconftool-2 --type string --set /system/http_proxy/host "$PROXY_HOST"
15         gconftool-2 --type int --set /system/http_proxy/port "$PROXY_PORT"
16         gconftool-2 --type bool --set /system/http_proxy/use_http_proxy true
17         gconftool-2 --type bool --set /system/http_proxy/use_same_proxy true
18         gconftool-2 --type string --set /system/proxy/mode "manual"
19         ;;
20      *)
21         gconftool-2 --type string --set /system/proxy/mode "none"
22         gconftool-2 --type bool --set /system/http_proxy/use_http_proxy false
23         ;;
24   esac
25fi
26
27exit 0
Note: See TracBrowser for help on using the repository browser.