Save the kernel r8169 modul as r8169.ko.org before installing realtek version.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 29 Oct 2009 23:08:21 +0000 (00:08 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 29 Oct 2009 23:08:21 +0000 (00:08 +0100)
doc/packages-list.txt
lfs/r8169

index 52bebf7..2bb2782 100644 (file)
 * procps-3.2.6
 * psmisc-22.2
 * qemu-0.10.5
-* r8101-1.013.00-kmod-2.6.27.31-ipfire
-* r8101-1.013.00-kmod-2.6.27.31-ipfire-xen
+* r8101-kmod-2.6.27.31-ipfire
+* r8101-kmod-2.6.27.31-ipfire-xen
 * r8168-8.014.00-kmod-2.6.27.31-ipfire
 * r8168-8.014.00-kmod-2.6.27.31-ipfire-xen
 * r8169-6.011.00-kmod-2.6.27.31-ipfire
index a43bdae..2ed519d 100644 (file)
--- a/lfs/r8169
+++ b/lfs/r8169
@@ -78,6 +78,9 @@ $(subst %,%_MD5,$(objects)) :
 
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
+       #Save original r8169 module
+       -mv /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/r8169.ko \
+           /lib/modules/$(KVER)-$(VERSUFIX)/kernel/drivers/net/r8169.ko.org
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/r8169_add_missing_pciids.patch
        cd $(DIR_APP) && make -C /lib/modules/$(KVER)-$(VERSUFIX)/build/ SUBDIRS=$(DIR_APP)/src modules