summaryrefslogtreecommitdiffstats
path: root/Documentation/fault-injection/failcmd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/fault-injection/failcmd.sh')
-rw-r--r--Documentation/fault-injection/failcmd.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/fault-injection/failcmd.sh b/Documentation/fault-injection/failcmd.sh
new file mode 100644
index 000000000000..63177aba8106
--- /dev/null
+++ b/Documentation/fault-injection/failcmd.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo 1 > /proc/self/make-it-fail
+exec $*