return
fi
- ip rule add table static
+ ip rule add table static >/dev/null 2>&1
}
function create_all_routes() {
local file=${1}
shift
- # Remote all routes.
+ # Remove all routes.
ip route flush table static >/dev/null 2>&1
local status
continue
fi
- ip route add ${network} via ${gateway} table static proto static
+ ip route add ${network} via ${gateway} table static proto static >/dev/null 2>&1
done < ${file}
}