#!/bin/sh echo umount killall maemo-xinput-sounds killall temp-reaper umount /home/user/MyDocs echo truecrypt modprobe xts modprobe lrw truecrypt -m=timestamp --filesystem=none /home/.user.tc mount -t ext4 -o rw,noatime,commit=1,data=writeback /dev/mapper/truecrypt1 /home/user #if i don't mount it like this, it takes too long to mount losetup /dev/loop5 /home/user/.MyDocs.container mount /dev/loop5 /home/user/MyDocs #workaround to be able to "see" the MyDocs folder using the #filemanager. truecrypt -t -l echo "ctrl-c to abort...." sleep 5 #restart the daemon that manages IM user accounts (and maybe #e-mail accounts?) echo "signond" killall signond sleep 2 #restart the messaging services, to re-read messaging accounts echo "trackerd" killall trackerd echo "tracker-indexer" killall tracker-indexer echo "browserd" killall browser browserd echo "mission-control" killall mission-control echo "rtcom-messaging-ui" killall rtcom-messaging-ui echo "rtcom-call-ui" killall rtcom-call-ui echo "rtcom-accounts-ui" killall rtcom-accounts-ui echo "osso-addressbook" killall osso-addressbook echo "hildon-thumbnailerd" killall hildon-thumbnailerd echo "osso-connectivity-ui-conndlgs" killall osso-connectivity-ui-conndlgs echo "clipboard-manager" killall clipboard-manager echo "profiled" killall profiled echo "sleep 10" sleep 10 echo "hildon-desktop" killall hildon-desktop echo "sleep 15" sleep 15 echo "hildon-home" killall hildon-home sleep 2 echo "hildon-status-menu" killall hildon-status-menu echo "systemui" killall systemui #restart the better part of hildon, to re-read desktop, calendar, #shortcuts, etc from the new /home/user encrypted partition.
/dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir) truecrypt on /tmp/.truecrypt_aux_mnt1 type fuse.truecrypt (no-canonicalize,rw,nosuid,nodev,allow_other) /dev/mapper/truecrypt1 on /home/user type ext4 (rw,noatime,commit=1,data=writeback) /dev/loop5 on /home/user/MyDocs type ext4 (0)