Man, am I the greatest

This commit is contained in:
λmolinae 2025-06-07 06:27:03 +00:00
parent 696dcd1d27
commit 0b4e7f9185
13 changed files with 163 additions and 163 deletions

View file

@ -1,17 +1,18 @@
#!/bin/sh
ROOT=""$HOME"/Documents/Miscellaneous/alpchroot"
ROOT="${HOME:-/home/amolinae}/Documents/Miscellaneous/alpchroot"
case "$1" in
"") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
case "$1" in
*)
bwrap \
--bind "$ROOT" / \
--bind /proc /proc \
--dev-bind /dev /dev \
--bind "$PWD" "$PWD" \
--bind "$HOME" "$HOME" \
--unshare-all \
--share-net \
"$@" ;;
esac
--bind "$ROOT" / \
--bind /proc /proc \
--bind /sys /sys \
--dev-bind /dev /dev \
--bind "$PWD" "$PWD" \
--bind "$HOME" "$HOME" \
--unshare-all \
--share-net \
"$@" ;;
"") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
esac