diff options
Diffstat (limited to 'community/cloud-init/cloud-init-hotplugd')
-rw-r--r-- | community/cloud-init/cloud-init-hotplugd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/cloud-init/cloud-init-hotplugd b/community/cloud-init/cloud-init-hotplugd new file mode 100644 index 00000000000..444712e78fb --- /dev/null +++ b/community/cloud-init/cloud-init-hotplugd @@ -0,0 +1,14 @@ +#!/bin/sh + +PIPE="/run/cloud-init/hook-hotplug-cmd" + +mkfifo -m700 $PIPE + +while true; do + # shellcheck disable=SC2162 + read args < $PIPE + # shellcheck disable=SC2086 + exec /usr/bin/cloud-init devel hotplug-hook $args +done + +exit |