Small fixes

parent 4a01ab7d
......@@ -6,5 +6,3 @@ echo "allow-hotplug eth0" | sudo tee --append /etc/network/interfaces
echo "iface eth0 inet dhcp" | sudo tee --append /etc/network/interfaces
sudo sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub
sudo update-grub
......@@ -14,24 +14,26 @@ PROXY_URL="http://dnsproxy:3128"
echo "Installating packages"
apt-get update
apt-get remove --purge $PKG_TO_REMOVE
apt-get autoremove --purge
apt-get install $PKG_TO_INSTALL
apt-get -y remove --purge $PKG_TO_REMOVE
apt-get -y autoremove --purge
apt-get -y install $PKG_TO_INSTALL
# Todo rename users / update password
echo "Configuring firefox for network auto detect"
for u in $USERS
profile=$(awk -F = '/^Path/{print $2}' ~$u/.mozilla/firefox/profiles.ini)
profile=`awk -F = '/^Path/{print $2}' /home/$u/.mozilla/firefox/profiles.ini`
echo "$u uses profile $profile"
echo $preffile
sed -i.bak -e 'd/user_pref("network.proxy.type")/' $preffile
sed -i.bak -e '/user_pref("network.proxy.type")/d' $preffile
echo 'user_pref("network.proxy.type", 4);' >> $preffile
echo "Adding apt proxy"
sed -i.bak -e 'd/Acquire::http::Proxy/' $debfile
sed -i.bak -e '/Acquire::http::Proxy/d' $debfile
echo "Acquire::http::Proxy \"$PROXY_URL\";" >> $debfile
echo "Removing seamonkey and dillo"
......@@ -45,4 +47,3 @@ done
echo "Fixing network issues"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment