package/base-files: allow ipv6 routes without gateway specified
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Nov 2008 22:45:16 +0000 (22:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Nov 2008 22:45:16 +0000 (22:45 +0000)
SVN-Revision: 13419

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

index 4d423be600298c0834c4aeddf1a24aa6e75b37b3..dd6ae508879f3a1de267a208ace51d59a326fdd1 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