summaryrefslogtreecommitdiff
path: root/test/udevd_test.sh
blob: 981a39d01d5ac32832f5efbd287210c600f8ede5 (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
86
87
88
#!/bin/sh

# add/rem/add/rem/add sequence of sda/sdb/sdc
# a few days longer and the socket of my usb-flash-reader is gone :)

export SEQNUM=0
export ACTION=add
export DEVPATH=/test/init
./udevsend test

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

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

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

export SEQNUM=4
export ACTION=remove
export DEVPATH=/test/sdc
./udevsend test

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

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

export SEQNUM=6
export ACTION=remove
export DEVPATH=/test/sda
./udevsend test

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

sleep 2

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

export SEQNUM=11
export ACTION=remove
export DEVPATH=/test/sdb
./udevsend test

export SEQNUM=10
export ACTION=remove
export DEVPATH=/test/sdc
./udevsend test

export SEQNUM=13
export ACTION=add
export DEVPATH=/test/sda
./udevsend test

export SEQNUM=14
export ACTION=add
export DEVPATH=/test/sdb
./udevsend test

export SEQNUM=15
export ACTION=add
export DEVPATH=/test/sdc
./udevsend test

sleep 2

export SEQNUM=12
export ACTION=remove
export DEVPATH=/test/sda
./udevsend test