Package: ifupdown-extra
Version: 0.25

Hello,
the script /etc/network/if-up.d/20static-routes
checks for ${IFACE} in /etc/network/routes:

        cat $ROUTEFILE | egrep "^[^#].*[[:space:]]${IFACE}[[:space:]]*$" |


However, when "ifup -a" is called, the ${IFACE} contains string "--all" in
which case no infterface matches and routes are not set.

I recommend simply adding a check at the beginning of the script to redefine
IFACE to match anything:

if [ ${IFACE} = "--all" ]; IFACE="[[:alnum]]+"; fi

or maybe just to ".*" if interface should have hyphen in their names.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.

Reply via email to