From 6df51c9fc0e624f3601ac54d0665369a2f27114a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 22 Dec 2008 02:57:21 +0000 Subject: [PATCH] merge r13714 to 8.09 branch SVN-Revision: 13715 --- package/base-files/files/etc/hotplug.d/iface/10-routes | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/etc/hotplug.d/iface/10-routes b/package/base-files/files/etc/hotplug.d/iface/10-routes index dd6ae50887..0eb92870fc 100644 --- a/package/base-files/files/etc/hotplug.d/iface/10-routes +++ b/package/base-files/files/etc/hotplug.d/iface/10-routes @@ -27,7 +27,8 @@ add_route() { dest="${netmask:+-net "$target" netmask "$netmask"}" dest="${dest:--host "$target"}" - /sbin/route add $dest gw "$gateway" ${dev:+dev "$dev"} ${metric:+ metric "$metric"} + /sbin/route add $dest ${gateway:+gw "$gateway"} \ + ${dev:+dev "$dev"} ${metric:+ metric "$metric"} } add_route6() { @@ -54,7 +55,8 @@ add_route6() { config_get gateway "$interface" gateway } - /sbin/route -A inet6 add $target ${gateway:+gw "$gateway"} ${dev:+dev "$dev"} ${metric:+ metric "$metric"} + /sbin/route -A inet6 add $target ${gateway:+gw "$gateway"} \ + ${dev:+dev "$dev"} ${metric:+ metric "$metric"} } case "$ACTION" in -- 2.30.2