| 1 | #!/bin/sh |
| 2 | |
| 3 | PIPE="/run/cloud-init/hook-hotplug-cmd" |
| 4 | |
| 5 | mkfifo -m700 $PIPE |
| 6 | |
| 7 | while true; do |
| 8 | # shellcheck disable=SC2162 |
| 9 | read args < $PIPE |
| 10 | # shellcheck disable=SC2086 |
| 11 | exec /usr/bin/cloud-init devel hotplug-hook $args |
| 12 | done |
| 13 | |
| 14 | exit |