#!/bin/bash

ME="$0"
if [ -h "$0" ] ; then
	ME=`readlink -f "$0"`
fi

sbinpath=`dirname "$ME"`
if [ "z$sbinpath" = 'z.' ] ; then
	sbinpath=`pwd`
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
