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 gemian-system (0.1) stretch; urgency=low
* Initial release * Initial release

82
debian/postinst vendored
View file

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