Skip to content

Commit 9a3df55

Browse files
added script file
initialization
1 parent 21f2b98 commit 9a3df55

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

hippo.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
##
2+
## Plug-in for installing Hippo.
3+
##
4+
5+
DISTRO_NAME="hippo"
6+
DISTRO_COMMENT="[Testing] A ubuntu 21.04 port with some tweaks"
7+
8+
# You can override a CPU architecture to let distribution
9+
# be executed by QEMU (user-mode).
10+
#
11+
# You can specify the following values here:
12+
#
13+
# * aarch64: AArch64 (ARM64, 64bit ARM)
14+
# * armv7l: ARM (32bit)
15+
# * i686: x86 (32bit)
16+
# * x86_64: x86 (64bit)
17+
#
18+
# Default value is set by proot-distro script and is equal
19+
# to the CPU architecture of your device (uname -m).
20+
#DISTRO_ARCH=$(uname -m)
21+
22+
# Returns download URL and SHA-256 of file in this format:
23+
# SHA-256|FILE-NAME
24+
get_download_url() {
25+
local rootfs
26+
local sha256
27+
28+
case "$DISTRO_ARCH" in
29+
aarch64)
30+
rootfs=""
31+
sha256="a35d4fb115da45f866d0b41544f99587eba979dad584bf9c9982f6242cc002ed"
32+
;;
33+
esac
34+
35+
echo "${sha256}|${rootfs}"
36+
}
37+
38+
39+
distro_setup() {
40+
# Hint: $PWD is the distribution rootfs directory.
41+
#echo "hello world" > ./etc/motd
42+
43+
# Run command within proot'ed environment with
44+
# run_proot_cmd function.
45+
# Uncomment this to do system upgrade during installation.
46+
#run_proot_cmd apt update
47+
#run_proot_cmd apt upgrade -yq
48+
:
49+
}

0 commit comments

Comments
 (0)