Assume clean and non-active system, dont try and remove network manager.

This commit is contained in:
Cyteen May 2020-02-26 14:25:04 +00:00
parent 978af22795
commit 45afdd6905
1 changed files with 5 additions and 7 deletions

View File

@ -1,18 +1,16 @@
#!/usr/bin/env bash
# Remove network-manager if present.
apt-get -y remove --purge network-manager* gir1.2-networkmanager-1.0 gir1.2-nmgtk-common libnm-*
apt-get -y remove --purge libnm-gtk
rm /home/user/.config/autostart/nm-applet.destop
#apt-get -y remove --purge network-manager* gir1.2-networkmanager-1.0 gir1.2-nmgtk-common libnm-*
#apt-get -y remove --purge libnm-gtk
#rm /home/user/.config/autostart/nm-applet.destop
# At some point we will move from ifconfig and iwconfig to ip and iw but wicd seems to only be partially their so:
apt-get -y install iw net-tools iproute2
apt-get -y install wicd wicd-gtk wicd-curses
# Stop the gtk wicd client, it doesn't like files being changes under it. Even if you delette the file, when it exits it writes out its settings.
PID=`ps aux | grep python | grep wicd-client| awk {'print $2'}`
kill -9 ${PID}
#PID=`ps aux | grep python | grep wicd-client| awk {'print $2'}`
#kill -9 ${PID}
#sed -i 's,^\(wireless_interface = \).*,\1'wlan0',' /etc/wicd/manager-settings.conf