home · contact · privacy
Improve wifi config.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 6 Oct 2017 16:40:06 +0000 (18:40 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 6 Oct 2017 16:40:06 +0000 (18:40 +0200)
ansible/config_new.yml
ansible/files/apt-mark_new/X200s/wifi [new file with mode: 0644]
bin/network.sh

index 47ffbd3cb38e09328035d202cddab75007b7d577..768059ee11407ce5f4f01b211cad044008cb432b 100644 (file)
   - 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 (file)
index 0000000..a0e499d
--- /dev/null
@@ -0,0 +1 @@
+wpasupplicant
index 37514c17f3b80538acd18841c4e362899222e897..0fedca25832a78e91bf4a98c45147765aacab319 100755 (executable)
@@ -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