~ubuntu-branches/ubuntu/wily/bcache-tools/wily-proposed

« back to all changes in this revision

Viewing changes to initramfs/hook

  • Committer: Package Import Robot
  • Author(s): Robie Basak
  • Date: 2014-09-29 10:13:58 UTC
  • Revision ID: package-import@ubuntu.com-20140929101358-49cxzqbrsi3d3l4c
Tags: upstream-1.0.7
ImportĀ upstreamĀ versionĀ 1.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREREQ="udev"
 
4
 
 
5
prereqs()
 
6
{
 
7
        echo "$PREREQ"
 
8
}
 
9
 
 
10
case $1 in
 
11
prereqs)
 
12
        prereqs
 
13
        exit 0
 
14
        ;;
 
15
esac
 
16
 
 
17
. /usr/share/initramfs-tools/hook-functions
 
18
 
 
19
if   [ -e /etc/udev/rules.d/69-bcache.rules ]; then
 
20
    cp -pt "${DESTDIR}/lib/udev/rules.d" /etc/udev/rules.d/69-bcache.rules
 
21
elif [ -e /lib/udev/rules.d/69-bcache.rules ]; then
 
22
    cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/69-bcache.rules
 
23
fi
 
24
 
 
25
copy_exec /lib/udev/bcache-register
 
26
copy_exec /lib/udev/probe-bcache
 
27
manual_add_modules bcache