Skip to content

Commit 4d59782

Browse files
Merge pull request #59 from RandomCoderOrg/nc-h-s-01
Nc h s 01
2 parents 180a583 + 78c723b commit 4d59782

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

credits.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"saicharankandukuri","GxmerSam", "Andre-cmd-rgb"
1414
]
1515
},
16-
"fs-manager-hippo":
16+
"fs-manager-udroid":
1717
{
18-
"name": "fs-manager-hippo",
18+
"name": "fs-manager-udroid",
1919
"owner": "saicharankandukuri",
2020
"version": "V01",
2121
"license": "MIT License",
22-
"extra_script": ["vncserver", "pulseeffects", "hippo"]
22+
"extra_script": ["vncserver", "pulseeffects", "udroid"]
2323
},
2424
"wrapper":
2525
{

hippo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DISTRO_NAME="hippo"
1+
DISTRO_NAME="udroid"
22
DISTRO_COMMENT="A ubuntu 21.04 port with some tweaks xfce4"
33

44
TARBALL_STRIP_OPT=0

install.sh

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
4242
INSTALL_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
5353
HIPPO_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}";:; }
7676
lshout () { 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}"
8080
sleep 2
8181

8282
case $(uname -m) in
@@ -94,6 +94,15 @@ esac
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+
97106
function 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_
171181
setup_and_clone

0 commit comments

Comments
 (0)