3 # This ifcfg-rh-specific script runs
4 # /etc/sysconfig/network-scripts/ifup-routes when bringing up
5 # interfaces that have routing rules associated with them that can't
6 # be expressed by NMSettingIPConfig. (Eg, policy-based routing.)
8 # This should be installed in dispatcher.d/pre-up.d/
10 dir=$(dirname "$CONNECTION_FILENAME")
11 if [ "$dir" != "/etc/sysconfig/network-scripts" ]; then
14 profile=$(basename "$CONNECTION_FILENAME" | sed -ne 's/^ifcfg-//p')
15 if [ -z "$profile" ]; then
19 if [ -f "$dir/rule-$profile" -o -f "$dir/rule6-$profile" ]; then
20 /etc/sysconfig/network-scripts/ifup-routes "$DEVICE_IP_IFACE" "$profile"