diff options
author | Ermal <eri@pfsense.org> | 2014-04-22 06:52:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-04-22 06:52:00 +0000 |
commit | ebafd470385a4db3ae8f7df28c29aa90a0a36d35 (patch) | |
tree | 4bd7cea805160734913572e828b109fb6c325f54 | |
parent | 928dc66a4341eeb7d84d79d7a331462107863170 (diff) | |
download | pfsense-ebafd470385a4db3ae8f7df28c29aa90a0a36d35.zip pfsense-ebafd470385a4db3ae8f7df28c29aa90a0a36d35.tar.gz |
Load if_stf module when needed
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 6b5d943..e067289 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3352,6 +3352,9 @@ function interface_6rd_configure($interface = "wan", $wancfg) { if (!is_array($wancfg)) return; + if (!is_module_loaded('if_stf.ko')) + mwexec('/sbin/kldload if_stf.ko'); + $wanif = get_real_interface($interface); $ip4address = find_interface_ip($wanif); if ((!is_ipaddrv4($ip4address)) || (is_private_ip($ip4address))) { |