#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=25
start() {
	[ -f /etc/sysctl.conf ] && {
		sysctl -p -e >&-
		[ -d /lib/vnet/ ] && {
			vnete sysctl -p -e >&-
			vnete sysctl -w net.ipv4.ip_forward=1
		}
		## fix bug 961835
		## set ip_forward_use_pmtu and route min_pmtu, 1052 is the value of mikrotik
		sysctl -w net.ipv4.ip_forward_use_pmtu=1
		sysctl -w net.ipv4.route.min_pmtu=1052
	}
}
