#! /bin/sh # # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved. # # Author: Werner Fink , 1998 # Burchard Steinbild, 1998 # # /etc/init.d/halt.local # # script with local commands to be executed from init on system shutdown # # Here you should add things, that should happen directly before shuting # down. # #Here you unmount the Truecrypt partition in case of system crash on Shutdown truecrypt 'd /dev/sda8 #Here you are making the encrypted swap plain again. swapoff /dev/mapper/swap cryptsetup remove swap mkswap /dev/sda6