merge r13419 (route6 without gateway) to 8.09
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 29 Nov 2008 21:46:06 +0000 (21:46 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 29 Nov 2008 21:46:06 +0000 (21:46 +0000)
SVN-Revision: 13436

package/base-files/files/etc/hotplug.d/iface/10-routes

index 4d423be..dd6ae50 100644 (file)
@@ -54,7 +54,7 @@ add_route6() {
                config_get gateway "$interface" gateway
        }
 
-       /sbin/route -A inet6 add $target 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