1
0
This repository has been archived on 2025-01-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
alacn1_pace_v5471/squashfs-root/etc/bewan/scripts/restricted_shell
Anderson Luiz Alves 0464e230c1 stock 103961
2017-07-30 16:48:04 -03:00

16 lines
327 B
Bash
Executable File

#!/bin/sh
# /etc/bewan/scripts/restricted_shell
#
if [ -f /usr/sbin/chroot ]; then
if [ -d /home/diag/var/run ]; then
/bin/mount -t tmpfs -o size=10k shm /home/diag/var/run
fi
if [ -f /home/diag/bin/ash ]; then
/usr/sbin/chroot /home/diag /bin/ash --login
else
/usr/sbin/chroot /home/diag /bin/sh
fi
fi