Skip to content

Commit 4607911

Browse files
added install.sh
1 parent b2fe70e commit 4607911

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

install.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env bash
2+
3+
TPREFIX="/data/data/com.termux/files"
4+
BIN_DIR="${TPREFIX}/usr/bin"
5+
INSTALL_FOLDER="${TPREFIX}/usr/var/lib/proot-distro/installed-rootfs"
6+
HIPPO_DIR="${INSTALL_FOLDER}/hippo"
7+
8+
echo "setting hippo..."
9+
10+
if [ -f etc/scripts/hippo/hippo.sh ]; then
11+
DIR="etc/scripts/hippo/hippo.sh"
12+
cp ${DIR} ${BIN_DIR}/hippo
13+
chmod 775 ${BIN_DIR}/hippo
14+
else
15+
echo "Installation Failed..."
16+
exit 1
17+
fi
18+
19+
if [ -f etc/scripts/vncserver/startvnc.sh ]; then
20+
DIR="etc/scripts/vncserver/startvnc.sh"
21+
cp ${DIR} ${HIPPO_DIR}/bin/startvnc
22+
proot-distro login hippo -- chmod 775 /bin/startvnc
23+
else
24+
echo "Installation Failed..."
25+
exit 1
26+
fi
27+
28+
if [ -f etc/scripts/vncserver/stopvnc.sh ]; then
29+
DIR="etc/scripts/vncserver/stopvnc.sh"
30+
cp ${DIR} ${HIPPO_DIR}/bin/stopvnc
31+
proot-distro login hippo -- chmod 775 /bin/stopvnc
32+
else
33+
echo "Installation Failed..."
34+
exit 1
35+
fi
36+
37+
echo "Done"
38+
39+
exit 0

0 commit comments

Comments
 (0)