瀏覽代碼

ncd: update README

ambrop7 14 年之前
父節點
當前提交
e3c7ceb3fc
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      ncd/README

+ 6 - 3
ncd/README

@@ -164,9 +164,12 @@ process WLAN {
     net.backend.rfkill("wlan", dev);
 
     # Start wpa_supplicant on this interface, using configuration in /etc/wpa_supplicant/all.conf .
-    # (wpa_supplicant is started via the stdbuf command to avoid problems with buffering of its output)
-    list("-o", "L", "/usr/sbin/wpa_supplicant") args;
-    net.backend.wpa_supplicant(dev, "/etc/wpa_supplicant/all.conf", "/usr/bin/stdbuf", args);
+    list() args;
+    net.backend.wpa_supplicant(dev, "/etc/wpa_supplicant/all.conf", "/usr/sbin/wpa_supplicant", args) sup;
+
+    # wpa_supplicant tells us what network we connected to. Look below for how this can be used to
+    # have different configurations, "BadVPN, but configured differently based on what network we're in".
+    println("connected to wireless network: bssid=", sup.bssid, " ssid=", sup.ssid);
 
     # Wireless connection successful, here comes network config (DHCP/static/whatever) ...
 }