@@ -97,35 +97,32 @@ function _lauch_or_install()
9797 echo -e " May be this not a correct installation...."
9898 echo -e " Try to notice us at \e[34m${SOCIAL_PLATFORM} \e[0m"
9999 exit 1
100+ fi
101+ if ! __check_for_filesystem; then
102+ echo -e " Installing hippo..........."
103+ if proot-distro install hippo; then
104+ echo -e " Installation Done......\a"
105+ echo " Waiting..."
106+ sleep 2
107+ clear
108+ echo -e " Now You can launch your ubuntu 21.04 with command \e[1;32mhippo\e[0m"
109+ # echo -e "use hippo --help for more option and comming up features"
110+ fi
100111 else
101- if ! __check_for_filesystem; then
102- echo -e " Installing hippo..........."
103- if proot-distro install hippo; then
104- echo -e " Installation Done......\a"
105- echo " Waiting..."
106- sleep 2
107- clear
108- echo -e " Now You can launch your ubuntu 21.04 with command \e[1;32mhippo\e[0m"
109- # echo -e "use hippo --help for more option and comming up features"
110- fi
111- else
112- # @GxmerSam Sam Alarie
113- pulseaudio --start --load=" module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 >> /dev/null
114-
115- if [ -f " {CACHE_ROOT}" /ubuntu-on-android/etc/scripts/vncserver/startvnc.sh ] && [ ! -f ${HIPPO_DIR} /bin/startvnc ]; then
116- DIR=" {CACHE_ROOT}/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh"
117- cp ${DIR} ${HIPPO_DIR} /bin/startvnc
118- proot-distro login hippo -- chmod 775 /bin/startvnc
119- fi
120-
121- if [ -f " {CACHE_ROOT}" /ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh ] && [ ! -f ${HIPPO_DIR} /bin/stopvnc ]; then
122- DIR=" ${CACHE_ROOT} /ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh"
123- cp " ${DIR} " ${HIPPO_DIR} /bin/stopvnc
124- proot-distro login hippo -- chmod 775 /bin/stopvnc
125- fi
126-
127- proot-distro login hippo " $@ "
112+ # @GxmerSam Sam Alarie
113+ pulseaudio --start --load=" module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 >> /dev/null
114+ if [ -f " {CACHE_ROOT}" /ubuntu-on-android/etc/scripts/vncserver/startvnc.sh ] && [ ! -f ${HIPPO_DIR} /bin/startvnc ]; then
115+ DIR=" {CACHE_ROOT}/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh"
116+ cp ${DIR} ${HIPPO_DIR} /bin/startvnc
117+ proot-distro login hippo -- chmod 775 /bin/startvnc
118+ fi
119+ if [ -f " {CACHE_ROOT}" /ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh ] && [ ! -f ${HIPPO_DIR} /bin/stopvnc ]; then
120+ DIR=" ${CACHE_ROOT} /ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh"
121+ cp " ${DIR} " ${HIPPO_DIR} /bin/stopvnc
122+ proot-distro login hippo -- chmod 775 /bin/stopvnc
128123 fi
124+
125+ proot-distro login hippo " $@ "
129126 fi
130127}
131128
0 commit comments