From 052631361a7daab3861661b4232457c6aeb4c25e Mon Sep 17 00:00:00 2001 From: BJ Dweck Date: Tue, 1 Sep 2020 19:37:08 +0200 Subject: [PATCH] Added BURROW motd --- stage2/06-rudefox-motd/00-packages | 1 + stage2/06-rudefox-motd/01-run.sh | 8 ++++++++ stage2/06-rudefox-motd/files/10-rudefox-header | 9 +++++++++ stage2/06-rudefox-motd/files/30-rudefox-instructions | 11 +++++++++++ 4 files changed, 29 insertions(+) create mode 100644 stage2/06-rudefox-motd/00-packages create mode 100755 stage2/06-rudefox-motd/01-run.sh create mode 100755 stage2/06-rudefox-motd/files/10-rudefox-header create mode 100755 stage2/06-rudefox-motd/files/30-rudefox-instructions diff --git a/stage2/06-rudefox-motd/00-packages b/stage2/06-rudefox-motd/00-packages new file mode 100644 index 0000000..5974f85 --- /dev/null +++ b/stage2/06-rudefox-motd/00-packages @@ -0,0 +1 @@ +toilet figlet diff --git a/stage2/06-rudefox-motd/01-run.sh b/stage2/06-rudefox-motd/01-run.sh new file mode 100755 index 0000000..01001f2 --- /dev/null +++ b/stage2/06-rudefox-motd/01-run.sh @@ -0,0 +1,8 @@ +#!/bin/bash -e + +rm -rf "${ROOTFS_DIR}/etc/motd" +rm -rf "${ROOTFS_DIR}/etc/update-motd.d/"* +install -m 755 files/* "${ROOTFS_DIR}/etc/update-motd.d/" + +echo "" >> "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.bashrc" +echo "PS1=\"\[\e[31m\]Burrow>\[\e[m\] \"" >> "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.bashrc" diff --git a/stage2/06-rudefox-motd/files/10-rudefox-header b/stage2/06-rudefox-motd/files/10-rudefox-header new file mode 100755 index 0000000..f15f699 --- /dev/null +++ b/stage2/06-rudefox-motd/files/10-rudefox-header @@ -0,0 +1,9 @@ +#!/bin/bash + +THIS_SCRIPT="header" +MOTD_DISABLE="" + +toilet -f standard -F metal Burrow + +printf '\nWelcome to RudeFox Burrow!\n' +printf '\n' diff --git a/stage2/06-rudefox-motd/files/30-rudefox-instructions b/stage2/06-rudefox-motd/files/30-rudefox-instructions new file mode 100755 index 0000000..531b8fb --- /dev/null +++ b/stage2/06-rudefox-motd/files/30-rudefox-instructions @@ -0,0 +1,11 @@ +#!/bin/bash + +echo "" +echo "=======================================================" +echo "=== TYPE: " +echo "=== rudefox-cold mnemonic -i8b 256 " +echo "=== " +echo "=== to generate a new 24-word seed " +echo "=======================================================" +echo "" +echo ""