summaryrefslogtreecommitdiff
path: root/bcache-register
diff options
context:
space:
mode:
Diffstat (limited to 'bcache-register')
-rwxr-xr-xbcache-register4
1 files changed, 4 insertions, 0 deletions
diff --git a/bcache-register b/bcache-register
new file mode 100755
index 0000000..bf93c7f
--- /dev/null
+++ b/bcache-register
@@ -0,0 +1,4 @@
+#!/bin/sh
+modprobe -qba bcache
+test -f /sys/fs/bcache/register && echo "$1" > /sys/fs/bcache/register
+