#!/bin/bash

if [ -L "$0" ]; then
	realpath=`readlink "$0"`
	sbinpath=`dirname $realpath`
else
	sbinpath=`dirname $0`
fi
sboxrel=`dirname $sbinpath`
SBOX_DIR=`readlink -f $sboxrel`

if [ -d $SBOX_DIR/users ]; then
	for i in `ls -1 $SBOX_DIR/users/` ; do
		$SBOX_DIR/sbin/sbox_mount $i
	done
fi
