setup

personal system configuration scripts
git clone git://git.pyratebeard.net/setup.git
Log | Files | Refs | README

commit 615a095b9ad60b772ebac2a844184123105e6a48
parent 95408c594bef4ec2a5f027f75cddf1213c824445
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon, 11 Dec 2023 21:02:54 +0000

kickstart

Diffstat:
Akickstart | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+), 0 deletions(-)

diff --git a/kickstart b/kickstart @@ -0,0 +1,59 @@ +#!/bin/sh +# +# ██ ██ ██ ██ ██ +# ░██ ░░ ░██ ░██ ░██ +# ░██ ██ ██ █████ ░██ ██ ██████ ██████ ██████ ██████ ██████ +# ░██ ██ ░██ ██░░░██░██ ██ ██░░░░ ░░░██░ ░░░░░░██ ░░██░░█░░░██░ +# ░████ ░██░██ ░░ ░████ ░░█████ ░██ ███████ ░██ ░ ░██ +# ░██░██ ░██░██ ██░██░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██ +# ░██░░██░██░░█████ ░██░░██ ██████ ░░██ ░░████████░███ ░░██ +# ░░ ░░ ░░ ░░░░░ ░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░ +# +# author ▓▒ pyratebeard <root@pyratebeard.net> +# code ▓▒ https://git.pyratebeard.net/setup + +# ▓▓▒░ + +# * install +# * git +# * make +# * bash +# * git clone +# * bitreich-drist +# * make install +# * setup +# * make all + +if command -v pacman >/dev/null ; then + UPDATE="pacman -Sy" + PKGADD="pacman -S --noconfirm" + PKGDEL="pacman -Rs --noconfirm" +elif command -v apt >/dev/null ; then + UPDATE="apt update" + PKGADD="DEBIAN_FRONTEND=noninteractive apt install -y" + PKGADD="DEBIAN_FRONTEND=noninteractive apt remove -y" +elif command -v pkg_add >/dev/null ; then + UPDATE="pkg_add -I -u" + PKGADD="pkg_add -I" + PKGDEL="pkg_delete -I" +fi + +# ▓▓▒░ functions +function _echo() { printf "\n╓───── %s \n╙────────────────────────────────────── ─ ─ \n" "$1"; } + +[ "$(id -u)" -ne 0 ] && { + _echo "got root?" >&2 + exit 1 +} + +_echo "installing pre-req packages" +$UPDATE && $PKGADD git make bash rsync + +_echo "installing drist" +git clone git://git.pyratebeard.net/bitreich-drist.git /opt/drist/ && \ + cd /opt/drist && \ + make install + +_echo "cloning setup repo" +git clone git://git.pyratebeard.net/setup.git /tmp/setup && \ + make