net/intel-em: transition driver to be compatible with 16.7.x

This would require -devel bits, which API will change again,
but we can make the driver plugin fully compatible in the way
that the core package registers its loader.conf values.
This commit is contained in:
Franco Fichtner
2016-09-16 09:12:12 +02:00
parent bda964bd3a
commit 956a9696bb
7 changed files with 18 additions and 12 deletions
-2
View File
@@ -1,2 +0,0 @@
echo "uninstall loader hook"
configctl firmware loader update
-2
View File
@@ -1,2 +0,0 @@
echo "install loader hook"
configctl firmware loader update
-7
View File
@@ -1,7 +0,0 @@
PLUGIN_NAME= intel-em-kmod
PLUGIN_VERSION= 1.0.1
PLUGIN_COMMENT= intel-em-kmod wrapper (please reboot after install/deinstall)
PLUGIN_DEPENDS= intel-em-kmod
PLUGIN_MAINTAINER= ad@opnsense.org
.include "../../Mk/plugins.mk"
@@ -1 +0,0 @@
YES
+6
View File
@@ -0,0 +1,6 @@
echo "Updating /boot/loader.conf"
touch /boot/loader.conf
cp /boot/loader.conf /boot/loader.conf.bak
(grep -v if_em_updated_load /boot/loader.conf.bak; \
echo 'if_em_updated_load="YES"') > /boot/loader.conf
rm -f /boot/loader.conf.bak
+5
View File
@@ -0,0 +1,5 @@
echo "Updating /boot/loader.conf"
touch /boot/loader.conf
cp /boot/loader.conf /boot/loader.conf.bak
(grep -v if_em_updated_load /boot/loader.conf.bak) > /boot/loader.conf
rm -f /boot/loader.conf.bak
+7
View File
@@ -0,0 +1,7 @@
PLUGIN_NAME= intel-em
PLUGIN_VERSION= 1.1
PLUGIN_COMMENT= Intel Gigabit Base Driver wrapper (requires reboot after install/deinstall)
PLUGIN_DEPENDS= intel-em-kmod
PLUGIN_MAINTAINER= ad@opnsense.org
.include "../../Mk/plugins.mk"