From 350b20f566f62665caf14c91a4030dbd57a5a5ca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 15 May 2007 18:57:08 +0000 Subject: [PATCH] add static route fix from #1384 SVN-Revision: 7256 --- openwrt/package/base-files/Makefile | 2 +- openwrt/package/base-files/default/etc/functions.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile index 6422b69118..ea35074bcf 100644 --- a/openwrt/package/base-files/Makefile +++ b/openwrt/package/base-files/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=base-files -PKG_RELEASE:=9 +PKG_RELEASE:=10 PKG_BUILD_DIR:=$(BUILD_DIR)/base-files include $(TOPDIR)/package/rules.mk diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index 70b3086849..57f2734c1c 100755 --- a/openwrt/package/base-files/default/etc/functions.sh +++ b/openwrt/package/base-files/default/etc/functions.sh @@ -56,10 +56,11 @@ do_ifup() { [ -n "$static_route" ] && { for route in $static_route; do { eval "set $(echo $route | sed 's/:/ /g')" - if [ "$2" = "255.255.255.255" ]; then + if [ "$2" = "0.0.0.0" ]; then opt="-host" fi $DEBUG route add ${opt:-"-net"} $1 netmask $2 gw $3 metric $4 + unset opt } done } -- 2.30.2