From f8f2d363c9a5aa6d169ef2e246d7849d0da21cea Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 6 Oct 2017 18:40:06 +0200 Subject: [PATCH] Improve wifi config. --- ansible/config_new.yml | 1 + ansible/files/apt-mark_new/X200s/wifi | 1 + bin/network.sh | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 ansible/files/apt-mark_new/X200s/wifi 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 -- 2.30.2