#!/bin/sh
#
# Utility script to be called from udev, so it's not monkey proof at all. It's
# sole purpose is to load the bcache kernel module whenever a bcache device is
# detected.
#
/sbin/modprobe -qba bcache
test -f /sys/fs/bcache/register_quiet && echo "$1" > /sys/fs/bcache/register_quiet 2>/dev/null

