From: Saverio Proto Date: Tue, 19 Feb 2013 17:01:37 +0000 (+0000) Subject: [packages] olsrd: don't try to start smartgw if not all deps are installed X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=91e975239a8c7073c0a83c06f4b40dfd736186a6;p=openwrt%2Fsvn-archive%2Farchive.git [packages] olsrd: don't try to start smartgw if not all deps are installed [packages] olsrd: don't try to start smartgw if not all deps are installed if kmod-ipip is missing, there is no need to invoke an expensive operation. Signed-off-by: Bastian Bittorf SVN-Revision: 35679 --- diff --git a/net/olsrd/files/olsrd.init b/net/olsrd/files/olsrd.init index fbdda309e1..6d08b69b2e 100644 --- a/net/olsrd/files/olsrd.init +++ b/net/olsrd/files/olsrd.init @@ -563,6 +563,7 @@ olsrd_setup_smartgw_rules() { # Check if ipip is installed [ -e /etc/modules.d/[0-9]*-ipip ] || { log "$funcname() Warning: kmod-ipip is missing. SmartGateway will not work until you install it." + return 1 } wanifnames=$(ip r l e 0/0 t all | sed -e 's/^.* dev //' |cut -d " " -f 1 | sort | uniq)