root-enter: upgrade to 5
more bugs less features
This commit is contained in:
parent
4f19fd3b3e
commit
93a4251b44
2 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
pkgname=root-enter
|
pkgname=root-enter
|
||||||
pkgver=4
|
pkgver=5
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="enter chroot with mounts"
|
pkgdesc="enter chroot with mounts"
|
||||||
url="https://git.ddd.rip/ptrcnull/ptrcports"
|
url="https://git.ddd.rip/ptrcnull/ptrcports"
|
||||||
|
@ -15,5 +15,5 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
4dd3e1b15eae6f423384d6bc638b6ee152aaf1a05d869f186d3c87795751ea94abc03284a628c982c2705d593ed3ff6f9c7859910f31defe84295d1388a869f8 enter
|
01f67466a77f8d4f7a8910546d4074a57dd82e7bd9867aab538df5b15e2335bc822b5d405fc568444dc463d9e3a2df725a5494a171902501b74e39c710ee0ca5 enter
|
||||||
"
|
"
|
||||||
|
|
|
@ -25,8 +25,14 @@ while getopts "be:u:c:" opt; do
|
||||||
done
|
done
|
||||||
shift $(( $OPTIND - 1 ))
|
shift $(( $OPTIND - 1 ))
|
||||||
|
|
||||||
|
if [ ! -d "$1" ]; then
|
||||||
|
echo "no such directory: $1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mount -t devtmpfs devtmpfs $1/dev
|
mount -t devtmpfs devtmpfs $1/dev
|
||||||
mount -t tmpfs shm $1/dev/shm
|
mount -t tmpfs shm $1/dev/shm
|
||||||
|
moutn -t devpts devpts $1/dev/pts
|
||||||
mount -t sysfs sysfs $1/sys
|
mount -t sysfs sysfs $1/sys
|
||||||
mount -t proc proc $1/proc
|
mount -t proc proc $1/proc
|
||||||
mount -t tmpfs tmpfs $1/tmp
|
mount -t tmpfs tmpfs $1/tmp
|
||||||
|
|
Loading…
Reference in a new issue