#!/bin/sh # TrueCrypt startup mounting skript # -- # (C) 2013 Rene Knipschild - Custom Software Development # www.rkcsd.com - P.O. Box 1468 - 34484 Korbach - GERMANY # Phone: +49 5631 9189488 # Email: email@rkcsd.com # Use my PGP pubkey for email requests: (download here) # http://go.reneknipschild.net/pubkey ### BEGIN INIT INFO # Provides: truecrypt # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: TrueCrypt data partition auto-mounting ### END INIT INFO case "$1" in start) echo "Mounting truecrypt encrypted data file system." /usr/bin/truecrypt -t -k "" --fs-options="uid=1000" --protect-hidden=no --password="MySecPw" /dev/sda4 /mnt/daten ;; stop) echo "Unmounting truecrypt encrypted data file system." /usr/bin/truecrypt -t -d ;; *) echo "Usage: /etc/init.d/truecrypt {start|stop}" exit 1 ;; esac exit 0