From 72f7c86449c66cc2e13430e10889738da5feda56 Mon Sep 17 00:00:00 2001 From: mukesh agrawal Date: Thu, 4 Aug 2011 14:51:46 -0700 Subject: [PATCH] crosutils: add new mod_for_test script, to keep flimflam away from test wi-fi devices. in http://gerrit.chromium.org/gerrit/6405, we introduced support for running some WiFi autotests in a VM (running a test image). for those tests to work, the connection manager must not attempt to manage the devices used by the APs. this change adds a mod_for_test script that updates flimflam's init script, adding command-line arguments that tell flimflam to ignore the AP devices. BUG=chromium-os:16348 TEST=manual: built test image, checked flimflam args in /etc/init/flimflam.conf Change-Id: I7a26d817e78f5743e2922a35c20ad6bee139445d Reviewed-on: http://gerrit.chromium.org/gerrit/6443 Reviewed-by: Richard Barnette Reviewed-by: mukesh agrawal Tested-by: mukesh agrawal --- mod_for_test_scripts/150setupVirtualWiFi | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 mod_for_test_scripts/150setupVirtualWiFi diff --git a/mod_for_test_scripts/150setupVirtualWiFi b/mod_for_test_scripts/150setupVirtualWiFi new file mode 100755 index 0000000000..3d9499a399 --- /dev/null +++ b/mod_for_test_scripts/150setupVirtualWiFi @@ -0,0 +1,11 @@ +#!/bin/bash + +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +echo "Configuring for virtual WiFi devices" + +# Prevent flimflam from taking control of AP interfaces +sed -i "s/flimflamd/flimflamd -I wlan1 -I wlan2 -I managed0 -I managed1/" \ + ${ROOT_FS_DIR}/etc/init/flimflam.conf