add esv - everest service manager

This commit is contained in:
lw-everestlinux
2022-10-11 07:45:59 -04:00
parent 3b76bb119f
commit c8aecefc2e
5 changed files with 104 additions and 0 deletions

12
src/everest-chroot Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
chroot "$EV" /usr/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='[everest-chroot] \u:\w \$ ' \
PATH=/usr/bin:/usr/sbin \
/bin/bash --login
if [ "$?" != "0" ]; then
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Could not enter chroot environment.\n" 1>&2
exit 1
fi