/etc/network/ifupdown-scripts-zg2.d/lo-linkup is in ifupdown-scripts-zg2 0.6-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/bash
# $Header$
# Environment:
# IFACE = Logical interface name
# MODE = { start | stop }
# METHOD = manual, otherwise exit
# ADDRFAM = inet, otherwise exit
. /etc/network/ifupdown-scripts-zg2.d/common-functions
# remove state if interface is being stopped
if [ "$MODE" = "stop" ]; then
exec_down "mac" ""
exec_down "dev" ""
exit 0
fi
# only do something for loopback interfaces
[ "$IF_TYPE" = "loopback" ] || exit 0
# only do something if interface is being started
[ "$MODE" = "start" ] || exit 0
# save state
add_down "dev" "$IF_DEVICE"
cmd "ip link set dev $IF_DEVICE up"
# vi:sw=2
|