/etc/sysconfig/network-scripts/ifup-eth
#Set the MTU for eth0 only using the ip command
if [ "$1" = "eth0" ]; then
exec /sbin/ip link set dev ${1} mtu 1200
fi
/sbin/
unobvious, and even criminal with respect to other admins. Which may have to work with this system in the future.
ifup.d
and ifdown.d
simply did not ifdown.d
. There is not even a mention of /etc/sysconfig/network-scripts/*
/sbin/
ifup-local
script:
#!/bin/bash
POSTUPNAME="/etc/sysconfig/network-scripts/post-up-$1"
if [ -x $POSTUPNAME ]; then
exec $POSTUPNAME
fi
post-up-eth0
files are then placed in /etc/sysconfig/network-scripts/
. with useful code inside.
/sbin/ifup-pre-local
), before disabling it ( /sbin/ifdown-pre-local
) and after disabling it ( /sbin/ifdown-local
).
Source: https://habr.com/ru/post/82525/