OLD | NEW |
---|---|
1 # Copyright (c) 2010 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 "Start the udev daemon" | 5 description "Start the udev daemon" |
6 author "chromium-os-dev@chromium.org" | 6 author "chromium-os-dev@chromium.org" |
7 | 7 |
8 # Start udev early so flimflam can be notified of "wlan0". The | 8 # Start udev early so flimflam can be notified of "wlan0". The |
9 # general "trigger" for remaining devices is now in the udev-addon | 9 # general "trigger" for remaining devices is now in the udev-addon |
10 # job | 10 # job |
11 start on runlevel 2 | 11 start on starting boot-services |
12 stop on stopping boot-services | |
diandersAtChromium
2011/04/20 16:36:44
NOTE: I'm not convinced this is right. It certain
| |
12 | 13 |
13 respawn | 14 respawn |
14 expect fork | 15 expect fork |
15 | 16 |
16 pre-start script | 17 pre-start script |
17 # udev uses inotify to monitor the dynamic rules directory | 18 # udev uses inotify to monitor the dynamic rules directory |
18 # /dev/.udev/rules.d; however, this directory must exist before | 19 # /dev/.udev/rules.d; however, this directory must exist before |
19 # udevd runs, or the inotify won't find the directory even if it | 20 # udevd runs, or the inotify won't find the directory even if it |
20 # is created later. This is an issue with udev-146. Udev | 21 # is created later. This is an issue with udev-146. Udev |
21 # versions 156 and later do not exhibit this problem, and for | 22 # versions 156 and later do not exhibit this problem, and for |
(...skipping 17 matching lines...) Expand all Loading... | |
39 # one. | 40 # one. |
40 mv $drvfile $drvfile.bad | 41 mv $drvfile $drvfile.bad |
41 MESSAGE="udev pre-start: modprobe $drv failed." | 42 MESSAGE="udev pre-start: modprobe $drv failed." |
42 MESSAGE="$MESSAGE Renamed $drvfile with .bad suffix." | 43 MESSAGE="$MESSAGE Renamed $drvfile with .bad suffix." |
43 logger "$MESSAGE" | 44 logger "$MESSAGE" |
44 fi | 45 fi |
45 fi | 46 fi |
46 end script | 47 end script |
47 | 48 |
48 exec udevd --daemon | 49 exec udevd --daemon |
OLD | NEW |