#!/bin/sh


echo "Unlocking and mounting encrypted /scratchbox..."

sudo losetup /dev/loop1 /home/luks-container
sudo cryptsetup luksOpen /dev/loop1 encr-container1
sudo mount /scratchbox

echo "scratchbox mounted"

sudo /scratchbox/sbin/sbox_ctl start

echo "...done. :)"

