fix parameter inversion,
[kdelibs.git] / kio / proxytype.pl
blob553db53f78c9e3757bc969b6a39f1c13956679d6
1 #!/usr/bin/perl
2 # the script is called with interpreter, so don't worry about the path
4 while(<>)
6 $useproxy = 1 if /UseProxy=true/;
7 $usepac = 1 if /Proxy Config Script=.*\S/;
9 printf ("# DELETE UseProxy\n");
10 $proxytype = $useproxy ? ($usepac ? 2 : 1) : 0;
11 print "ProxyType=$proxytype\n" if $proxytype;