11#! /usr/bin/env bash
22
33# ###################################################
4- # Hippo installer Script V01 (mad installer)
4+ # UDROID installer Script V01 (mad installer)
55# A script made by @zman-1x1 saicharankandukuri
66# Copyright (c) 2021 Saicharan Kandukuri
77@@ -41,8 +41,8 @@ BIN_DIR="${TPREFIX}/usr/bin"
4141# * used when checking for hippo
4242INSTALL_FOLDER=" ${TPREFIX} /usr/var/lib/proot-distro/installed-rootfs"
4343
44- # HIPPO_DIR variable points to folder where hippo root filesystem is in
45- HIPPO_DIR =" ${INSTALL_FOLDER} /hippo "
44+ # UDROID_DIR variable points to folder where hippo root filesystem is in
45+ UDROID_DIR =" ${INSTALL_FOLDER} /udroid "
4646
4747# SCRIPT_DIR variable points to folder where plugins for proot-distro is stored
4848# * this is where hippo.sh plugin goes
@@ -51,7 +51,7 @@ SCRIPT_DIR="${TPREFIX}/usr/etc/proot-distro/"
5151
5252# HIPPO_REPO_URL & FSM_URL are github repo urls later used to clone the code
5353HIPPO_REPO_URL=" https://github.com/RandomCoderOrg/ubuntu-on-android"
54- FSM_URL=" https://github.com/RandomCoderOrg/fs-manager-hippo "
54+ FSM_URL=" https://github.com/RandomCoderOrg/fs-manager-udroid "
5555
5656# DEPENDS programs required to run Hippo
5757# * proot-distro - A proot manager tool
@@ -76,7 +76,7 @@ shout () { echo -e "${DC}-----";echo -e "${*}";echo -e "-----${RST}";:; }
7676lshout () { echo -e " ${DC} " ; echo -e " ${* } " ; echo -e " ${RST} " ; : ; }
7777
7878
79- shout " \e[1;32m Hippo Installer v${version} ${version_code_name} \n by ${installer_authors} "
79+ shout " \e[1;32m Udroid Installer v${version} ${version_code_name} \n by ${installer_authors} "
8080sleep 2
8181
8282case $( uname -m) in
9494# 4. call install function
9595# if anything goes wrong or any program in code fails kill the installation by calling die function
9696
97+ function _NOTICE_()
98+ {
99+ if [ ! -f ~ /.udroid_notice.lock ]; then
100+ touch ~ /.udroid_notice.lock
101+ shout " The Code name for this ubuntu is chaned from \" hippo\" to \" udroid\" "
102+ sleep 5
103+ fi
104+ }
105+
97106function setup_and_clone()
98107{
99108 shout " Trying to update apt indexes...."
@@ -119,10 +128,10 @@ function setup_and_clone()
119128 shout " Cloning code from Github........."
120129 if [ -n " ${BRANCH} " ]; then
121130 git clone -b " ${BRANCH} " ${HIPPO_REPO_URL} " ${CACHE_ROOT} /ubuntu-on-android" || die " failed to clone repo"
122- git clone -b " ${BRANCH} " ${FSM_URL} " ${CACHE_ROOT} /fs-manager-hippo " || die " failed to clone repo"
131+ git clone -b " ${BRANCH} " ${FSM_URL} " ${CACHE_ROOT} /fs-manager-udroid " || die " failed to clone repo"
123132 else
124133 git clone ${HIPPO_REPO_URL} " ${CACHE_ROOT} /ubuntu-on-android" || die " failed to clone repo"
125- git clone ${FSM_URL} " ${CACHE_ROOT} /fs-manager-hippo " || die " failed to clone repo"
134+ git clone ${FSM_URL} " ${CACHE_ROOT} /fs-manager-udroid " || die " failed to clone repo"
126135 fi
127136 lshout " Done..."
128137
@@ -133,7 +142,7 @@ function setup_and_clone()
133142# * function install
134143#
135144# 1. chech for plugin and copy to proot-distro plugin folder
136- # 2. chech for fs-manager-hippo (hippo) install script in its root directory and run it
145+ # 2. chech for fs-manager-udroid (hippo) install script in its root directory and run it
137146# 3. trigger hippo installation
138147# 4. show echo of installation complete and clear screen
139148# if anything goes wrong or any program in code fails kill the installation by calling die function
@@ -152,9 +161,9 @@ function install()
152161 cp " ${CACHE_ROOT} " /ubuntu-on-android/hippo.sh ${SCRIPT_DIR}
153162 fi
154163
155- if [ -f " ${CACHE_ROOT} " /fs-manager-hippo /install.sh ]; then
164+ if [ -f " ${CACHE_ROOT} " /fs-manager-udroid /install.sh ]; then
156165 oldpwd=" $( pwd) "
157- cd " ${CACHE_ROOT} " /fs-manager-hippo || die " failed to cd ..."
166+ cd " ${CACHE_ROOT} " /fs-manager-udroid || die " failed to cd ..."
158167 bash install.sh || die " failed to install manager..."
159168 cd " ${oldpwd} " || die " error"
160169 fi
@@ -168,4 +177,5 @@ function install()
168177
169178}
170179
180+ _NOTICE_
171181setup_and_clone
0 commit comments