diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-20 02:40:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-20 02:40:11 +0000 |
commit | e4a8b8b0aab56d10fb79b4d1c60f4ef62e769292 (patch) | |
tree | 24db6bca8e2255aeabbc4c68edb2127e4aa6e5a9 /packages/miniupnpd/miniupnpd.xml | |
parent | b915c1177b778fa01ba941f4e7cdec122e7e14ef (diff) | |
download | pfsense-packages-e4a8b8b0aab56d10fb79b4d1c60f4ef62e769292.tar.gz pfsense-packages-e4a8b8b0aab56d10fb79b4d1c60f4ef62e769292.tar.bz2 pfsense-packages-e4a8b8b0aab56d10fb79b4d1c60f4ef62e769292.zip |
Do not allow package to be installed if carp interfaces detected. Alert user of reason that its crashing and burning.
This will be rectified once miniupnpd can be instructed of a external ip to use instead of relying on its broken logic in this case.
Diffstat (limited to 'packages/miniupnpd/miniupnpd.xml')
-rw-r--r-- | packages/miniupnpd/miniupnpd.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml index f2f144d3..859f70d9 100644 --- a/packages/miniupnpd/miniupnpd.xml +++ b/packages/miniupnpd/miniupnpd.xml @@ -53,6 +53,13 @@ <type>interfaces_selection</type> </field> </fields> + <custom_install_php_command> + $ints = `ifconfig -l`; + if(stristr($ints, "carp")) { + update_output_window("This package is not compatible with CARP."); + exit; + } + </custom_install_php_command> <custom_add_php_command> sync_package_miniupnpd(); </custom_add_php_command> |