17 lines
364 B
Bash
Executable File
17 lines
364 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DISCOROOT=/var/disco/testfs
|
|
|
|
mount | grep $DISCOROOT >/dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
echo "disco filesystem is not mounted"
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$NOOP" != "" ]; then
|
|
chroot ${DISCOROOT}/chroot /bin/env PATH=${DISCOROOT}/restricted/bin /bin/bash --login --restricted $@
|
|
else
|
|
chroot ${DISCOROOT}/chroot /bin/bash --login $@
|
|
fi
|
|
exit $?
|