8

[all variants] can't call $IF_GATEWAY in post-up scripts

view full story
linux-howto

http://ubuntuforums.org – Hi, I've created a script in /etc/network/if-up.d/my_script so that when an interface gets up, it creates a new routing table (and deletes it when the interface goes down): Here is the script: Code: echo "Setup routing table \"$IFACE\" for address \"$IF_ADDRESS\", gateway \"$IF_GATEWAY\"" ip rule add from $IF_ADDRESS table $IFACE # cree la route pour acceder a la gateway ip route add $IF_NETWORK dev $IFACE src $IF_ADDRESS table $IFACE ip route add default via $IF_GATEWAY dev $IFACE table $IFACE The problem is that $IF_ADDRESS and $IF (Hardware)