Overhaul install script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
ce2413484c
commit
b2e45c8af1
26 changed files with 692 additions and 407 deletions
21
.install/issue.sh
Normal file
21
.install/issue.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# issue.sh
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin@kaderli.dev>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# Creates the /etc/issue file
|
||||
|
||||
output::section "Issue"
|
||||
output::log "Creating /etc/issue"
|
||||
{
|
||||
echo '\e{red}';
|
||||
< "/etc/hostname" tr '[:lower:]' '[:upper:]' | figlet -f big | sed "s/\\\\/\\\\\\\/g";
|
||||
echo -e "\\\r (\\\l)";
|
||||
echo '\e{reset}';
|
||||
} > "/tmp/issue"
|
||||
sudo install "/tmp/issue" "/etc/issue" |& output::debug
|
||||
output::log "Successfully created /etc/issue"
|
Loading…
Add table
Add a link
Reference in a new issue