summaryrefslogtreecommitdiff
path: root/test/udevd_test.sh
blob: 0c7bd431be1b2fdfdbe4f230ea8f85c8d927b5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash

# kill daemon, first event will start it again
killall udevd

# connect(123) - disconnect(456) - connect(789) sequence of sda/sdb/sdc

export SEQNUM=1
export ACTION=add
export DEVPATH=/block/sda
./udevsend block

export SEQNUM=2
export ACTION=add
export DEVPATH=/block/sdb
./udevsend block

export SEQNUM=4
export ACTION=remove
export DEVPATH=/block/sda
./udevsend block

export SEQNUM=3
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block

export SEQNUM=6
export ACTION=remove
export DEVPATH=/block/sdc
./udevsend block

export SEQNUM=5
export ACTION=remove
export DEVPATH=/block/sdb
./udevsend block

export SEQNUM=7
export ACTION=add
export DEVPATH=/block/sda
#./udevsend block

export SEQNUM=9
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block

export SEQNUM=8
export ACTION=add
export DEVPATH=/block/sdb
./udevsend block