chiark / gitweb /
[PATCH] tweak net_test a bit.
[elogind.git] / test / udevd_test.sh
1 #!/bin/sh
2
3 # add/rem/add/rem/add sequence of sda/sdb/sdc
4 # a few days longer and the socket of my usb-flash-reader is gone :)
5
6 export SEQNUM=0
7 export ACTION=add
8 export DEVPATH=/test/init
9 ./udevsend test
10
11 export SEQNUM=3
12 export ACTION=add
13 export DEVPATH=/test/sdc
14 ./udevsend test
15
16 export SEQNUM=1
17 export ACTION=add
18 export DEVPATH=/test/sda
19 ./udevsend test
20
21 export SEQNUM=2
22 export ACTION=add
23 export DEVPATH=/test/sdb
24 ./udevsend test
25
26 export SEQNUM=4
27 export ACTION=remove
28 export DEVPATH=/test/sdc
29 ./udevsend test
30
31 export SEQNUM=5
32 export ACTION=remove
33 export DEVPATH=/test/sdb
34 ./udevsend test
35
36 export SEQNUM=8
37 export ACTION=add
38 export DEVPATH=/test/sdb
39 ./udevsend test
40
41 export SEQNUM=6
42 export ACTION=remove
43 export DEVPATH=/test/sda
44 ./udevsend test
45
46 export SEQNUM=7
47 export ACTION=add
48 export DEVPATH=/test/sda
49 #./udevsend test
50
51 sleep 2
52
53 export SEQNUM=9
54 export ACTION=add
55 export DEVPATH=/test/sdc
56 ./udevsend test
57
58 export SEQNUM=11
59 export ACTION=remove
60 export DEVPATH=/test/sdb
61 ./udevsend test
62
63 export SEQNUM=10
64 export ACTION=remove
65 export DEVPATH=/test/sdc
66 ./udevsend test
67
68 export SEQNUM=13
69 export ACTION=add
70 export DEVPATH=/test/sda
71 ./udevsend test
72
73 export SEQNUM=14
74 export ACTION=add
75 export DEVPATH=/test/sdb
76 ./udevsend test
77
78 export SEQNUM=15
79 export ACTION=add
80 export DEVPATH=/test/sdc
81 ./udevsend test
82
83 sleep 2
84
85 export SEQNUM=12
86 export ACTION=remove
87 export DEVPATH=/test/sda
88 ./udevsend test