28 lines
894 B
Bash
Executable File
28 lines
894 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ "$1" = install ] && [ ! -f "/etc/crypttab" ]; then
|
|
cat <<-EOC >/etc/crypttab
|
|
# <target name> <source device> <key file> <options>
|
|
EOC
|
|
fi
|
|
|
|
# Automatically added by dh_installdeb/13.14.1ubuntu5
|
|
dpkg-maintscript-helper rm_conffile /etc/init/cryptdisks-udev.conf 2:2.4.0-1 -- "$@"
|
|
dpkg-maintscript-helper rm_conffile /etc/init/cryptdisks.conf 2:2.4.0-1 -- "$@"
|
|
# End automatically added section
|
|
# Automatically added by dh_installinit/13.14.1ubuntu5
|
|
if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/cryptdisks" ] ; then
|
|
chmod +x "/etc/init.d/cryptdisks" >/dev/null || true
|
|
fi
|
|
# End automatically added section
|
|
# Automatically added by dh_installinit/13.14.1ubuntu5
|
|
if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/cryptdisks-early" ] ; then
|
|
chmod +x "/etc/init.d/cryptdisks-early" >/dev/null || true
|
|
fi
|
|
# End automatically added section
|
|
|
|
|
|
exit 0
|