break everything but cosmo communicator

This commit is contained in:
Penelope Gwen 2026-02-10 12:21:46 -08:00
parent e882c0cae7
commit 0691e08e85
2 changed files with 60 additions and 41 deletions

19
debian/changelog vendored
View file

@ -1,3 +1,22 @@
gemian-system (0.11+nmu3) bookworm; urgency=medium
* allow insecure curl
-- Penelope Gwen <support@pogmom.me> Mon, 09 Feb 2026 00:10:13 -0800
gemian-system (0.11+nmu2) bookworm; urgency=medium
* break script for everything but the cosmo communicator lmao
-- Penelope Gwen <support@pogmom.me> Sun, 08 Feb 2026 23:46:24 -0800
gemian-system (0.11+nmu1) bookworm; urgency=medium
* Non-maintainer upload.
* maybe fix for bookworm
-- Penelope Gwen <support@pogmom.me> Sun, 08 Feb 2026 22:30:57 -0800
gemian-system (0.1) stretch; urgency=low
* Initial release

82
debian/postinst vendored
View file

@ -13,39 +13,39 @@ android_system_dir="unknown"
android_system_img="unknown"
target_checksum="unknown"
if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6797(.*)$ ]];
then
device="mt6797"
fi
#if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6797(.*)$ ]];
#then
# device="mt6797"
#fi
if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6771(.*)$ ]];
then
#if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6771(.*)$ ]];
#then
device="mt6771"
fi
#fi
if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6873(.*)$ ]];
then
device="mt6873"
fi
#if [[ "$cmdline" =~ ^(.*)androidboot.hardware\=mt6873(.*)$ ]];
#then
# device="mt6873"
#fi
if [ -f "/proc/device-tree/model" -a "$device" == unknown ];
then
model=$(</proc/device-tree/model)
if [[ "$model" =~ ^(.*)MT6797(.*)$ ]];
then
device="mt6797"
fi
#if [ -f "/proc/device-tree/model" -a "$device" == unknown ];
#then
# model=$(</proc/device-tree/model)
# if [[ "$model" =~ ^(.*)MT6797(.*)$ ]];
# then
# device="mt6797"
# fi
if [[ "$model" =~ ^(.*)MT6771(.*)$ ]];
then
# if [[ "$model" =~ ^(.*)MT6771(.*)$ ]];
# then
device="mt6771"
fi
# fi
if [[ "$model" =~ ^(.*)MT6873(.*)$ ]];
then
device="mt6873"
fi
fi
# if [[ "$model" =~ ^(.*)MT6873(.*)$ ]];
# then
# device="mt6873"
# fi
#fi
if [ "$device" == unknown ]; then
pid=$$
@ -56,23 +56,23 @@ if [ "$device" == unknown ]; then
done
fi
case $device in
"mt6797")
android_system_dir="/data"
android_system_img="/data/system.img"
target_checksum="39cd17718e838823c80be0ddfc9763d88e32c1b0"
;;
"mt6771")
#case $device in
#"mt6797")
# android_system_dir="/data"
# android_system_img="/data/system.img"
# target_checksum="39cd17718e838823c80be0ddfc9763d88e32c1b0"
# ;;
#"mt6771")
android_system_dir="/var/lib/lxc/android"
android_system_img="/var/lib/lxc/android/android-rootfs.img"
target_checksum="f8b91bd83795c62f1e9b33be9a4156bdf4a90658"
;;
"mt6873")
android_system_dir="/var/lib/lxc/android"
android_system_img="/var/lib/lxc/android/android-rootfs.img"
target_checksum="ac89776ea0c06fe7148237cdf800cb917cdd985d"
;;
esac
# ;;
#"mt6873")
# android_system_dir="/var/lib/lxc/android"
# android_system_img="/var/lib/lxc/android/android-rootfs.img"
# target_checksum="ac89776ea0c06fe7148237cdf800cb917cdd985d"
# ;;
#esac
if cmp -s /lib/udev/rules.d/80-keyboard.rules /usr/lib/gemian/udev-rules/80-keyboard-$device.rules;
then
@ -104,7 +104,7 @@ else
tempfile="$(mktemp)"
rm $tempfile
echo "Downloading new Android system image"
curl https://gemian.thinkglobally.org/system/system.$target_checksum.img.xz --output $tempfile.xz
curl -k https://gemian.thinkglobally.org/system/system.$target_checksum.img.xz --output $tempfile.xz
xz -d $tempfile.xz
downloaded_checksum="$(sha1sum $tempfile | cut -d' ' -f1)"
if [ "$target_checksum" == "$downloaded_checksum" ];