blob: 31b168074b8ce24476dc82423636371c266ed666 (
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
|
#!/usr/bin/ash
# vim: set ft=sh:
run_hook() {
for i in $(ls /sys/class/net); do
echo Bringing up interface $i for AoE
ifconfig $i up
done
# Make sure udev has processed all events from adding the NIC
# modules before loading aoe
udevadm settle --timeout=30
echo Loading AoE module
modprobe aoe
# Wait until aoe device files have been generated.
udevadm settle --timeout=30
echo Issuing AoE discover
aoe-discover
}
# Run as `/hooks/aoe run_hook` to run the function()
"$@"
# vim: set ft=sh ts=4 sw=4 et:
|