updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / mkinitcpio-nbd / nbd_hook
blob315050fb32642c1d8fa2c109253ca716923caa7b
1 # vim: set ft=sh:
2 run_hook ()
4         echo "nbd: loading module..."
5         modprobe nbd
7         nbd_ip=$(echo ${nbd_server} | cut -d ":" -f 1)
8         nbd_port=$(echo ${nbd_server} | cut -d ":" -f 2)
10         echo nbd_server: ${nbd_server}
11         echo nbd_ip: ${nbd_ip}
12         echo nbd_port: ${nbd_port}
14         echo "nbd: connecting..."
15         nbd-client ${nbd_ip} ${nbd_port} /dev/nbd0 -persist