From 24e98ce46d17ebdff72467e73794c7851b2ed28f Mon Sep 17 00:00:00 2001 From: Claudio Fleiner Date: Mon, 28 Oct 2013 22:44:07 -0700 Subject: Adding autotools support to bcache-tools thie enables building it in a different directory, more flexible install and configure options, and should make it easier to eventualy create deb and rpm packages. Additionally this makes it much easier to build and test this package as it now behaves the same way as others we are using. --- initramfs/bcache | 22 ++++++++++++++++++++++ initramfs/hook | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100755 initramfs/bcache delete mode 100755 initramfs/hook (limited to 'initramfs') diff --git a/initramfs/bcache b/initramfs/bcache new file mode 100755 index 0000000..ce328f3 --- /dev/null +++ b/initramfs/bcache @@ -0,0 +1,22 @@ +#!/bin/sh + +PREREQ="udev" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/61-bcache.rules +copy_exec /lib/udev/bcache-register +copy_exec /sbin/probe-bcache +manual_add_modules bcache diff --git a/initramfs/hook b/initramfs/hook deleted file mode 100755 index ce328f3..0000000 --- a/initramfs/hook +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -PREREQ="udev" - -prereqs() -{ - echo "$PREREQ" -} - -case $1 in -prereqs) - prereqs - exit 0 - ;; -esac - -. /usr/share/initramfs-tools/hook-functions - -cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/61-bcache.rules -copy_exec /lib/udev/bcache-register -copy_exec /sbin/probe-bcache -manual_add_modules bcache -- cgit v1.2.3