Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: udev-addon.conf

Issue 6677181: Blacklist brcm* drivers from preload-wifi-driver (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: Added -f to rm Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 description "Trigger udev events" 5 description "Trigger udev events"
6 author "chromium-os-dev@chromium.org" 6 author "chromium-os-dev@chromium.org"
7 7
8 # We must run eventually even if the UI doesn't come up correctly, 8 # We must run eventually even if the UI doesn't come up correctly,
9 # because network configuration depends on this job. 9 # because network configuration depends on this job.
10 start on starting failsafe 10 start on starting failsafe
(...skipping 15 matching lines...) Expand all
26 26
27 if [ -n "$drv" ] ; then 27 if [ -n "$drv" ] ; then
28 drvmod=$(lsmod | awk 'd==$1 { print $1 }' d="$drv") 28 drvmod=$(lsmod | awk 'd==$1 { print $1 }' d="$drv")
29 fi 29 fi
30 30
31 if [ -n "$drvmod" ] ; then 31 if [ -n "$drvmod" ] ; then
32 if [ -s $drvfile ] ; then 32 if [ -s $drvfile ] ; then
33 olddrv=$(head -1 $drvfile) 33 olddrv=$(head -1 $drvfile)
34 fi 34 fi
35 35
36 # Blacklist brcm drivers
37 # TODO: investigate true cause of the problem and remove blacklist
38 if [ "$(echo $drv | head -c4)" = "brcm" ] ; then
39 rm -f $drvfile
36 # Only update contents if they've changed. 40 # Only update contents if they've changed.
37 if [ "$drv" != "$olddrv" ] ; then 41 elif [ "$drv" != "$olddrv" ] ; then
38 echo "$drv" > $drvfile 42 echo "$drv" > $drvfile
39 fi 43 fi
40 else 44 else
41 logger "udev-addon:$iwdev: $drv is not a module." 45 logger "udev-addon:$iwdev: $drv is not a module."
42 fi 46 fi
43 end script 47 end script
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698