[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 <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35679 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
902a6ed102
commit
cb75e9bf4c
1 changed files with 1 additions and 0 deletions
|
@ -563,6 +563,7 @@ olsrd_setup_smartgw_rules() {
|
||||||
# Check if ipip is installed
|
# Check if ipip is installed
|
||||||
[ -e /etc/modules.d/[0-9]*-ipip ] || {
|
[ -e /etc/modules.d/[0-9]*-ipip ] || {
|
||||||
log "$funcname() Warning: kmod-ipip is missing. SmartGateway will not work until you install it."
|
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)
|
wanifnames=$(ip r l e 0/0 t all | sed -e 's/^.* dev //' |cut -d " " -f 1 | sort | uniq)
|
||||||
|
|
Loading…
Reference in a new issue