~uphackers/uphack/event.d

« back to all changes in this revision

Viewing changes to udevtrigger

  • Committer: root
  • Date: 2008-03-19 14:51:08 UTC
  • Revision ID: root@blackbook-20080319145108-9lzaud8h1m63ny57
Initial import into bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description     "Cold plug devices"
 
2
author          "Scott James Remnant"
 
3
 
 
4
start on started udev
 
5
 
 
6
console output
 
7
 
 
8
script
 
9
    if [ -x /usr/sbin/udevmonitor ]; then
 
10
        /usr/sbin/udevmonitor -e >/dev/.udev.log &
 
11
        UDEV_MONITOR_PID=$!
 
12
    fi
 
13
 
 
14
    /sbin/udevtrigger
 
15
    /sbin/udevsettle
 
16
 
 
17
    if [ -n "$UDEV_MONITOR_PID" ]; then
 
18
        kill $UDEV_MONITOR_PID
 
19
    fi
 
20
end script