blob: 94698085cacf7605415f4ee5f02c94236280955e (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#!/bin/bash
# kill daemon, first event will start it again
killall udevd
# 3 x connect/disconnect sequence of sda/sdb/sdc
export SEQNUM=3
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block
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/sdc
./udevsend block
export SEQNUM=5
export ACTION=remove
export DEVPATH=/block/sdb
./udevsend block
export SEQNUM=8
export ACTION=add
export DEVPATH=/block/sdb
./udevsend block
export SEQNUM=6
export ACTION=remove
export DEVPATH=/block/sda
./udevsend block
export SEQNUM=7
export ACTION=add
export DEVPATH=/block/sda
#./udevsend block
sleep 2
export SEQNUM=9
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block
export SEQNUM=11
export ACTION=remove
export DEVPATH=/block/sdb
./udevsend block
export SEQNUM=10
export ACTION=remove
export DEVPATH=/block/sdc
./udevsend block
export SEQNUM=13
export ACTION=add
export DEVPATH=/block/sda
./udevsend block
export SEQNUM=14
export ACTION=add
export DEVPATH=/block/sdb
./udevsend block
export SEQNUM=15
export ACTION=add
export DEVPATH=/block/sdc
./udevsend block
sleep 2
export SEQNUM=12
export ACTION=remove
export DEVPATH=/block/sda
./udevsend block
|