Add Ubuntu Touch support

This commit is contained in:
walking-octopus 2022-07-27 20:40:13 +00:00 committed by GitHub
parent 2f0d3db477
commit 957e280bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -805,7 +805,7 @@ image_source="auto"
# SereneLinux, SharkLinux, Siduction, SkiffOS, Slackware, SliTaz, SmartOS,
# Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap, t2,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
# Ubuntu-Cinnamon, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE,
# Ubuntu-Cinnamon, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu Touch, Ubuntu-MATE,
# Ubuntu-Studio, Ubuntu, Univention, Venom, Void, VNux, LangitKetujuh, semc,
# Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX have ascii logos.
# NOTE: Arch, Ubuntu, Redhat, Fedora and Dragonfly have 'old' logo variants.
@ -1124,6 +1124,14 @@ get_distro() {
distro=$(trim_quotes "$distro")
distro=${distro/NAME=}
if [[ -f /usr/bin/system-image-cli ]]; then
export ut_ota = $(system-image-cli -i | awk '/version tag:/ { print $3 }');
distro="Ubuntu Touch $ut_ota";
# There's a weird UT bug where the HOSTNAME is set to android.
export HOSTNAME=$(hostname);
fi
# Get Ubuntu flavor.
if [[ $distro == "Ubuntu"* ]]; then
case $XDG_CONFIG_DIRS in
@ -10940,6 +10948,20 @@ ${c4} `soooo. .oooo`
EOF
;;
"Ubuntu Touch"*)
set_colors 3 7
read -rd '' ascii_data <<'EOF'
${c1}
###############
## ##
## ${c2}##${c1} ${c2}##${c1} ##
## ${c2}##${c1} ${c2}#${c1} ${c2}#${c1} ${c2}##${c1} ##
## ${c2}###${c1} ##
## ##
###############
EOF
;;
"Ubuntu MATE"* | "Ubuntu-MATE"*)
set_colors 2 7
read -rd '' ascii_data <<'EOF'