net/intel-em: use upcoming rc.loader for loader.conf contents

We can also automate by checking for existence of src/etc/rc.loader.d
and push to post-install and post-deinstall (yes, post, file must
be removed to generate the correct loader.conf), but that's a minor
thing for later.  :)
This commit is contained in:
Franco Fichtner 2016-09-22 18:59:31 +02:00
parent f574713b58
commit c8ce95eade
5 changed files with 4 additions and 12 deletions

View file

@ -0,0 +1 @@
/usr/local/etc/rc.loader

View file

@ -1,6 +1 @@
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
/usr/local/etc/rc.loader

View file

@ -1,5 +0,0 @@
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

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= intel-em
PLUGIN_VERSION= 1.1
PLUGIN_VERSION= 1.2
PLUGIN_COMMENT= Intel Gigabit Base Driver
PLUGIN_DEPENDS= intel-em-kmod
PLUGIN_MAINTAINER= ad@opnsense.org

View file

@ -0,0 +1 @@
if_em_updated_load="YES"