Skip to content

Instantly share code, notes, and snippets.

View dabruh's full-sized avatar
👀
Awake

dabruh

👀
Awake
  • /dev/tty
View GitHub Profile
@dabruh
dabruh / auto.luks
Created October 30, 2019 21:00 — forked from daks/auto.luks
Autofs script to automount LUKS encrypted disks. Based on http://msqr.us/m2/archives/2009/07/configuring-automount-for-luks.html
#!/bin/bash
# This file must be executable to work! chmod 755!
#
# The LUKS key must exist as a file at /etc/.keys/${device}.key
# Protect this directory: root as user/group, 400 as permissions
#
# Edit your autofs master file to include something like
# /mnt/crypt /etc/auto.luks --timeout=600
#
# Then you can access your LUKS encrypted disk with