Remove unnecessary double quotes from /dev/fd mount command
Remove unnecessary double quotes from /dev/fd umount command
Test if /dev/fd is a symlink first before removing, just in case...
Unmount all mount points in the chroot env with a for loop.
Some filesystems are mounted automatically by services, such as sysfs (which mounts ${CHROOTTARGET}/sys/fs/fuse/connections). This stops dsm-control.sh from being able to unmount all filesystems when the chroot is stopped. A workaround for this is to loop thorugh all mounted filesystems inside ${CHROOTTARGET} and also unmount mount points with the lazy (-l) option to make sure they get cleared up if they aren't immediately unmountable.
Add restart functionality to control script