blob: 3334c6d6774fe268c900dbfd2288d37b640838c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# Remove proxy settings from browser.
users=`awk -F ':' '$3>=1000 && $3<2000 {print $1}' /etc/passwd`
for user in $users; do
gnunet_proxy=`grep -i "gns-proxy" /home/$user/.config/gnunet.conf`
if [ "$gnunet_proxy" ]; then
for ffprofile in /home/"$user"/.mozilla/firefox/*.*/; do
# Reset proxy preferences
js=$ffprofile/user.js
if [ -f $js ]; then
sed -i '/Preferences for using the GNU Name System/d' $js
sed -i '/network.proxy.socks/d' $js
sed -i '/network.proxy.socks_port/d' $js
sed -i '/network.proxy.socks_remote_dns/d' $js
sed -i '/network.proxy.type/d' $js
fi
done
# Chromium
profile=/home/$user/.profile
if [ -f $profile ]; then
sed -i '/CHROMIUM_USER_FLAGS/d' $profile
fi
fi
done
exit 0
|