From 1c0995cda53f8919a58723212a697604c0235df2 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Tue, 23 Nov 2010 21:50:11 +0000 Subject: module-init-tools: Recompile with install script that mv's /etc/modprobe.conf if it exists. --- abs/core/module-init-tools/PKGBUILD | 3 ++- abs/core/module-init-tools/module-init-tools.install | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 abs/core/module-init-tools/module-init-tools.install diff --git a/abs/core/module-init-tools/PKGBUILD b/abs/core/module-init-tools/PKGBUILD index a59ee80..60dc364 100644 --- a/abs/core/module-init-tools/PKGBUILD +++ b/abs/core/module-init-tools/PKGBUILD @@ -4,12 +4,13 @@ pkgname=module-init-tools pkgver=3.12 -pkgrel=1 +pkgrel=2 pkgdesc="utilities needed by Linux systems for managing loadable kernel modules" arch=('i686' 'x86_64') url="http://kerneltools.org" license=('GPL') depends=('glibc') +install=module-init-tools.install backup=('etc/modprobe.d/modprobe.conf') source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2 modprobe.conf) diff --git a/abs/core/module-init-tools/module-init-tools.install b/abs/core/module-init-tools/module-init-tools.install new file mode 100644 index 0000000..eedb63b --- /dev/null +++ b/abs/core/module-init-tools/module-init-tools.install @@ -0,0 +1,6 @@ +pre_upgrade() { + if [ -f /etc/modprobe.conf ] + then + mv /etc/modprobe.conf /etc/modprobe.d/modprobe.conf + done +} -- cgit v0.12