Skip to content

Commit 13ee270

Browse files
Preaparing for first xfce4 fs file pre-release
modified: README.md new file: etc/scripts/dbus-wake.sh new file: etc/scripts/hippo new file: gitignore modified: install.sh
1 parent 4590726 commit 13ee270

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# ubuntu-on-android
2-
![status](https://img.shields.io/badge/status-in%20early%20stages%20of%20buliding-orange)
3-
42
A twaked ubuntu-21.04 port runs on android with termux/proot-distro
53

64
## More updates comming soon👊.

etc/scripts/dbus-wake.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# simple script to run dbus on start by SaicharanKandukuri
4+
5+
if [ ! -f /tmp/dbus-wake.lock ]; then
6+
service dbus start > /dev/null 2>&1
7+
touch /tmp/dbus-wake.lock
8+
fi

etc/scripts/hippo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
proot-distro launch hippo --bind /dev/null:/proc/sys/kernel/cap_last_cap --user ubuntu

gitignore

Whitespace-only changes.

install.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,30 @@
44
# A Script to implant hippo inside
55
# proot-distro(for now!)
66
#
7-
8-
DISTRO_PLUGINS_DIR="/data/data/com.termux/files/usr/etc/proot-distro"
7+
TERMUX_PREFIX="/data/data/com.termux/files"
8+
DISTRO_PLUGINS_DIR="${TERMUX_PREFIX}/usr/etc/proot-distro"
99

1010
function _implant_()
1111
{
12-
if [ -r hippo.sh ]; then
13-
mv -v hippo.sh "${DISTRO_PLUGINS_DIR}"
12+
if [ -f hippo.sh ]; then
13+
if ! [ -f "${DISTRO_PLUGINS_DIR}"/hippo.sh ]; then
14+
mv -v hippo.sh "${DISTRO_PLUGINS_DIR}"
15+
else
16+
echo "Looks like \"hippo\" is already installed..."
17+
fi
1418
return 0
1519
else
1620
return 1
1721
fi
1822
}
1923

24+
if ! command -v proot-distro; then
25+
apt install proot-distro -y
26+
fi
27+
2028
if _implant_; then
2129
echo -e "Implant done......."
22-
proot-distro list | grep "hippo"
23-
fi
30+
echo -e "- Now you can install ubuntu by running \e[1;32mproot-distro install\e[0m"
31+
else # this wont happen (mostly)
32+
echo ":( \e[32m error...\e[0m Please create a issue at \e[1;32mhttps://github.com/SaicharanKandukuri/ubuntu-on-android/issues\e[0m to resolve "
33+
fi

0 commit comments

Comments
 (0)