summaryrefslogtreecommitdiff
path: root/cryptfs.rc.in
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs.rc.in')
-rw-r--r--cryptfs.rc.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/cryptfs.rc.in b/cryptfs.rc.in
new file mode 100644
index 0000000..bf52b9e
--- /dev/null
+++ b/cryptfs.rc.in
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# #RCDDIR#/cryptfs: mount/umount encrypted partitions
+#
+
+case "$1" in
+
+ start)
+
+ cryptfs
+
+ ;;
+
+ stop)
+
+ cryptfs -u
+
+ ;;
+
+ restart)
+
+ "$0" stop
+ "$0" start
+
+ *)
+
+ echo "usage: $0 [start|stop|restart]"
+
+ ;;
+
+esac
+
+# End of file