From 944b6db89ae715d93d0804a6a2358dcab88f1c07 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Wed, 24 Nov 2021 02:02:25 -0500 Subject: initial bare repo commit --- .local/bin/gamemount | 3 +++ .local/bin/makechrootbld | 19 +++++++++++++++++++ .local/bin/mirrorupdate | 3 +++ .local/bin/update-repos | 7 +++++++ 4 files changed, 32 insertions(+) create mode 100755 .local/bin/gamemount create mode 100755 .local/bin/makechrootbld create mode 100755 .local/bin/mirrorupdate create mode 100755 .local/bin/update-repos (limited to '.local/bin') diff --git a/.local/bin/gamemount b/.local/bin/gamemount new file mode 100755 index 0000000..4a45539 --- /dev/null +++ b/.local/bin/gamemount @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo mount -o "uid=1000,gid=1000,rw,user,exec,umask=000 0 0" /dev/sdc2 /mnt diff --git a/.local/bin/makechrootbld b/.local/bin/makechrootbld new file mode 100755 index 0000000..c1d1ae6 --- /dev/null +++ b/.local/bin/makechrootbld @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +echo "creating arch chroot..." +CHROOT=$(pwd)/chroot +mkdir $CHROOT +mkarchroot $CHROOT/root base-devel + +echo "upgrading chroot..." +arch-nspawn $CHROOT/root pacman -Syu + +echo "building package..." +makechrootpkg -c -u -T -r $CHROOT + +echo "removing chroot" +sudo rm -rf $CHROOT + +echo "installing package" +sudo pacman -U *.pkg* +echo "DONE !" diff --git a/.local/bin/mirrorupdate b/.local/bin/mirrorupdate new file mode 100755 index 0000000..0f0d199 --- /dev/null +++ b/.local/bin/mirrorupdate @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo reflector --country US --protocol https --latest 20 --sort rate -n 5 --save /etc/pacman.d/mirrorlist diff --git a/.local/bin/update-repos b/.local/bin/update-repos new file mode 100755 index 0000000..cfa5810 --- /dev/null +++ b/.local/bin/update-repos @@ -0,0 +1,7 @@ +#!/bin/sh + +## run this in a directory full of git repos (i usually keep them in ~) +for dir in * +do + cd "$dir" && git pull | sed s/Already/"$dir"\ is\ already/; cd .. +done -- cgit v1.2.3