Commit 9c0eafdc69c98179c393d5f5e735c00a0e9e39da
Commits[COMMIT BEGIN]commit 9c0eafdc69c98179c393d5f5e735c00a0e9e39da Author: 0x4248 <[email protected]> Date: Fri Dec 12 22:22:15 2025 +0000 usr/minifetch: A tiny fetch script for the minimal This is an apsolutely tiny fetch script for the minimalists out there. It is written in pure bash and has no dependencies other than coreutils. It compresses itself using xz to save space, by a few bytes. Perfect for the linux on floppy project. Signed-off-by: 0x4248 <[email protected]> diff --git a/systems/linux/dotfiles/nexus/.scripts/menu.sh b/systems/linux/dotfiles/nexus/.scripts/menu.sh index bf57e89..3b817ee 100644 --- a/systems/linux/dotfiles/nexus/.scripts/menu.sh +++ b/systems/linux/dotfiles/nexus/.scripts/menu.sh @@ -17,7 +17,7 @@ run_update() { dialog --infobox "Running system update... please wait." 5 40 TEMP_OUTPUT=$(mktemp) - echo "$PASSWORD" | sudo -S pacman -Syu --noconfirm >"$TEMP_OUTPUT" 2>&1 + echo "$PASSWORD" | sudo apt upgrade >"$TEMP_OUTPUT" 2>&1 dialog --textbox "$TEMP_OUTPUT" 20 70 rm -f "$TEMP_OUTPUT" diff --git a/usr/minifetch/Makefile b/usr/minifetch/Makefile new file mode 100644 index 0000000..d3fbfcb --- /dev/null +++ b/usr/minifetch/Makefile @@ -0,0 +1,7 @@ +all: build + +build: + xz -9e --format=lzma main.sh + cat pre-run.top.sh > out.sh + base64 main.sh.lzma >> out.sh + cat pre-run.bottom.sh >> out.sh \ No newline at end of file diff --git a/usr/minifetch/out.sh b/usr/minifetch/out.sh new file mode 100644 index 0000000..2562a2f --- /dev/null +++ b/usr/minifetch/out.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +PAYLOAD=$(cat << 'EOF' +XQAAAAT//////////wARiEJGPfQYaqZnr3qfb7t6hK4O3ZLE9kisPCkfNKjri/d16pHDXiK+9w5T +JGbEAktW1mcYWvrsnG0QhICoxlHTLZz4llohrVm5eCfXamP58o6+YSRUoB/m1Ydc2Ma64Dk7tXV7 +yQ5GG0fg7atnDYF5bfZ8o2auzTQ/wO3nGKG26X7waTiX1oPoJpntNai02h4GcCfY44Cv7dh/N+WE +el5uzIDnSWHxsM2UW5Df94dYhqGl6gON7BfP0dzoZDChhNeydOLkj263RtVrV45qsOW3+9SfuKs7 +MSEHKx846caEPMDd2CDKDZ/T1UMi8lyWNXvlIcFQQkxKHUJVYRKjWYX/9M4Svvx7Lq7tTFFG5QgC +G4+tF+/UBcO9tabbFzGN2YPObKdVgymTVDMEpG1z+/jrJthuMWC8B7j2sIr9KxVhy4ZpYgmppXiw +b6Pw5fsq8RtdYYXPUmalL4QpJAjWA5+GcWzhxEH4FI5ahCvtnH/O27L2lM8nIwsdjzBe5biGpKDv +5NoE4b8JIcma1Rwy3SBdML8sEFvrwfLW/+4Rxmw= +EOF +) +printf '%s' "$PAYLOAD" | base64 -d | lzma -d | bash \ No newline at end of file diff --git a/usr/minifetch/pre-run.bottom.sh b/usr/minifetch/pre-run.bottom.sh new file mode 100644 index 0000000..3f3e854 --- /dev/null +++ b/usr/minifetch/pre-run.bottom.sh @@ -0,0 +1,3 @@ +EOF +) +printf '%s' "$PAYLOAD" | base64 -d | lzma -d | bash \ No newline at end of file diff --git a/usr/minifetch/pre-run.top.sh b/usr/minifetch/pre-run.top.sh new file mode 100644 index 0000000..918de5f --- /dev/null +++ b/usr/minifetch/pre-run.top.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +PAYLOAD=$(cat << 'EOF'[COMMIT END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.