From: Christian Heller Date: Fri, 6 Oct 2017 16:40:06 +0000 (+0200) Subject: Improve wifi config. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/do_day?a=commitdiff_plain;h=f8f2d363c9a5aa6d169ef2e246d7849d0da21cea;p=config Improve wifi config. --- diff --git a/ansible/config_new.yml b/ansible/config_new.yml index 47ffbd3..768059e 100644 --- a/ansible/config_new.yml +++ b/ansible/config_new.yml @@ -102,6 +102,7 @@ - name: ensure wifi configuration apt: name={{item}} state=present with_lines: cat ~/config/ansible/files/apt-mark_new/minimal/wifi | sed -e 's/ *#.*$//' + with_lines: cat ~/config/ansible/files/apt-mark_new/X200s/wifi | sed -e 's/ *#.*$//' #- name: ensure wicd # apt: name={{item}} state=present # with_lines: cat ~/config/ansible/files/apt-mark_new/W530/wicd | sed -e 's/ *#.*$//' diff --git a/ansible/files/apt-mark_new/X200s/wifi b/ansible/files/apt-mark_new/X200s/wifi new file mode 100644 index 0000000..a0e499d --- /dev/null +++ b/ansible/files/apt-mark_new/X200s/wifi @@ -0,0 +1 @@ +wpasupplicant diff --git a/bin/network.sh b/bin/network.sh index 37514c1..0fedca2 100755 --- a/bin/network.sh +++ b/bin/network.sh @@ -30,6 +30,8 @@ elif [ "${1}" = 'wifi_connect_open' ]; then ensure_wifi_on iw dev "$wifi_interface" connect "${2}" #dhclient "$wifi_interface" + #ip route delete default + #ip route add default via 192.168.1.1 dev wls1 elif [ "${1}" = 'wifi_connect_wep_ascii' ]; then ensure_wifi_on