File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments