Skip to content

Commit f2924b7

Browse files
Update init-host.sh (#19)
* Update init-host.sh * Update init.sh
1 parent 893c8c0 commit f2924b7

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

core/main/src/main/assets/init-host.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ if [ -z "$(ls -A "$ALPINE_DIR" | grep -vE '^(root|tmp)$')" ]; then
66
tar -xf "$PREFIX/files/alpine.tar.gz" -C "$ALPINE_DIR"
77
fi
88

9-
if [ ! -s $ALPINE_DIR/etc/resolv.conf ]; then
10-
echo "nameserver 8.8.8.8" > /etc/resolv.conf
11-
fi
12-
139
[ ! -e "$PREFIX/local/bin/proot" ] && cp "$PREFIX/files/proot" "$PREFIX/local/bin"
1410

1511
for sofile in "$PREFIX/files/"*.so.2; do

core/main/src/main/assets/init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ set -e # Exit immediately on Failure
22

33
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/share/bin:/usr/share/sbin:/usr/local/bin:/usr/local/sbin:/system/bin:/system/xbin
44
export HOME=/root
5+
6+
if [ ! -s /etc/resolv.conf ]; then
7+
echo "nameserver 8.8.8.8" > /etc/resolv.conf
8+
fi
9+
10+
511
cd "$XPWD"
612
export PS1="\[\e[38;5;46m\]\u\[\033[39m\]@karbon \[\033[39m\]\w \[\033[0m\]\\$ "
713
# shellcheck disable=SC2034

0 commit comments

Comments
 (0)