From 889dc19c2e9e074cbcbb40ca1f1581db74c309e0 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Thu, 30 Oct 2025 07:22:15 -0600 Subject: [PATCH] 1.5-rc-3 --- README.md | 2 +- rpi_create_image.sh | 61 --------------------------------------------- 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 rpi_create_image.sh diff --git a/README.md b/README.md index a6656b6..0894bd7 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ #### Install (Auto) **WILL REBOOT IN BETWEEN EACH COMMAND** 1. `curl -s https://raw.githubusercontent.com/PrincessPi3/Precision-Timekeeping-Fuckery/refs/heads/main/time_fuckery.sh?nocache=$RANDOM | $SHELL` -2. `git -C ~/Precision-Timekeeping-Fuckery pull && bash ~/Precision-Timekeeping-Fuckery/time_fuckery.sh` +2. `git -C ~/Precision-Timekeeping-Fuckery pull && bash ~/Precision-Timekeeping-Fuckery/time_fuckery.sh && sudo reboot` 1. each reboot run the above command a total of four (4) times 3. [https://grandfatherclock:3000](https://grandfatherclock:3000/login) 1. default login: `admin` and `admin` diff --git a/rpi_create_image.sh b/rpi_create_image.sh deleted file mode 100644 index eb59612..0000000 --- a/rpi_create_image.sh +++ /dev/null @@ -1,61 +0,0 @@ -#/bin/bash -imgname=`date +"%Y-%m-%d-%H%M-%S"`-grandfatherclock-pi4.img -xzname=$imgname.xz -sizes=sizes-$imgname-$xzame.txt -checksums=sha256sum-$imgname-$xzname.sha256 - -# get real username (not root) if run with sudo -if [ ! -z $SUDO_USER ]; then - username=$SUDO_USER -else - username=$USER -fi - -# get disk -lsblk -echo "Enter disk name (including /dev/) ex /dev/sdb" -read dadisk - -# start -webhook "starting copy $dadisk to $imgname to $xzname at $(date)($(date +%s))" true - -# copy disk -sudo dd if=$dadisk of=$imgname bs=4M status=progress -imgsize=$(du -h $imgname) - -# shrink and compress the image -webhook "Copied the disk to $imgname ($imgsize), compressing to $xzname" -sudo pishrink.sh -Z -a $imgname -xzsize=$(du -h $xzname) - -# sha256 checksums -webhook "$imgname ($imgsize) shrunk to $xzname ($xzsize), calculating sha256 checksums..." -sha256sum $imgname | tee $checksums -sha256sum $xzname | tee -a $checksums - -# log filesizes -webhook "saving sizes" -echo -e "imgsize: $imgsize\nxzsize: $xzsize" | tee $sizes - -# change archive to be friendly perms -webhook "changing perms" -sudo chown $username:$username $xzname - -# test archive -webhook "testing archive $xzname" -xz -t $xzname -ret=$? -# if test fails -if [ $ret -gt 0 ]; then - webhook "FAIL! ARCHIVE DES NOT CHECK return code: $ret EXITING" - exit 1 -# if test succeeds -else - webhook "Archive Test SUCCESS" -fi - -# schedule reboot in 1 minute -sudo shutdown -r +1 - -# finish and notify -webhook "DONE\n\tdisk: $dadisk\n\timgname: $imgname ($imgsize)\n\txzname: $xzname ($xzsize)" true \ No newline at end of file