ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : LiteSpeed
System : Linux v2202501248978307069 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
User : voirf6718 ( 1002)
PHP Version : 7.3.33-1+focal
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Directory :  /lib/cloud-init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/cloud-init/hook-hotplug
#!/bin/sh
# This file is part of cloud-init. See LICENSE file for license information.

# This script checks if cloud-init has hotplug hooked and if
# cloud-init is ready; if so invoke cloud-init hotplug-hook

fifo=/run/cloud-init/hook-hotplug-cmd

should_run() {
    if [ -d /run/systemd ]; then
        # check that the socket is ready
        [ -p $fifo ]
    else
        # on non-systemd, check cloud-init fully finished.
        [ -e /run/cloud-init/result.json ]
    fi
}

if ! should_run; then
    exit 0
fi

# open cloud-init's hotplug-hook fifo rw
exec 3<>$fifo
env_params=" --subsystem=${SUBSYSTEM} handle --devpath=${DEVPATH} --udevaction=${ACTION}"
# write params to cloud-init's hotplug-hook fifo
echo "${env_params}" >&3

ZeroDay Forums Mini