You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
332 B
Plaintext

7 years ago
#!/bin/sh -e
if [ -e /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
fi
if ! init_is_upstart; then
exit 0
fi
# Let's ignore meta entries (ifdown -a)
if [ "$ADDRFAM" = "meta" ]; then
exit 0
fi
initctl emit -n net-device-down \
"IFACE=$IFACE" \
"LOGICAL=$LOGICAL" \
"ADDRFAM=$ADDRFAM" \
"METHOD=$METHOD"