Otavio Salvador wrote: >> - if [ -e chroot/dev/pts/0 ] >> + if ls /dev/pts/[0-9] > /dev/null 2>&1 > > chroot/dev/pts/* ? both checks are insufficient, as they are always true. -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann at panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/