Mine
public text v1 · immutable#!/bin/sh
if [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
echo $jail_1_rootdir
if [ -z "$jail_list" ]; then
echo "No jails found on this system."
exit 1
fi
for jid in $jail_list
do
echo ${jail}_${jid}_rootdir
done