0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.22.74.192


Current Path : /proc/thread-self/root/snap/core/current/etc/init/
Upload File :
Current File : //proc/thread-self/root/snap/core/current/etc/init/network-interface.conf

# network-interface - configure network device
#
# This service causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.

description	"configure network device"

emits net-device-up
emits net-device-down
emits static-network-up

start on net-device-added
stop on net-device-removed INTERFACE=$INTERFACE

instance $INTERFACE
export INTERFACE

pre-start script
    if [ "$INTERFACE" = lo ]; then
        # bring this up even if /etc/network/interfaces is broken
        ifconfig lo 127.0.0.1 up || true
        initctl emit -n net-device-up \
            IFACE=lo LOGICAL=lo ADDRFAM=inet METHOD=loopback || true
    fi
    mkdir -p /run/network
    ifup --allow auto $INTERFACE
    ifup --allow hotplug $INTERFACE
end script

post-stop script
    ifdown --force --allow auto $INTERFACE
    ifdown --force --allow hotplug $INTERFACE
end script