saving uncommitted changes in /etc prior to apt run

This commit is contained in:
root
2022-05-16 14:49:24 +02:00
parent c330f57a32
commit 9edad8c3bc
21 changed files with 795 additions and 4 deletions
+15 -1
View File
@@ -476,6 +476,8 @@ maybe chmod 0644 'modules'
maybe chmod 0755 'modules-load.d'
maybe chmod 0644 'motd'
maybe chmod 0644 'nanorc'
maybe chmod 0644 'neofetch'
maybe chmod 0644 'neofetch/neofetch.config'
maybe chmod 0644 'netconfig'
maybe chmod 0755 'network'
maybe chmod 0755 'network/if-down.d'
@@ -641,6 +643,18 @@ maybe chmod 0755 'sv/ssh/finish'
maybe chmod 0755 'sv/ssh/log'
maybe chmod 0755 'sv/ssh/log/run'
maybe chmod 0755 'sv/ssh/run'
maybe chmod 0755 'synth-shell'
maybe chmod 0755 'synth-shell/examples'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.blue.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.gray.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.green.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.magenta.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.orange.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.red.config'
maybe chmod 0644 'synth-shell/examples/synth-shell-prompt.yellow.config'
maybe chmod 0644 'synth-shell/synth-shell-prompt.config'
maybe chmod 0644 'synth-shell/synth-shell-prompt.config.default'
maybe chmod 0644 'synth-shell/synth-shell-prompt.root.config'
maybe chmod 0644 'sysctl.conf'
maybe chmod 0755 'sysctl.d'
maybe chmod 0644 'sysctl.d/98-rpi.conf'
@@ -703,7 +717,7 @@ maybe chmod 0755 'unbound'
maybe chmod 0755 'unbound/unbound.conf.d'
maybe chmod 0644 'unbound/unbound.conf.d/resolvconf_resolvers.conf'
maybe chmod 0755 'update-motd.d'
maybe chmod 0755 'update-motd.d/10-uname'
maybe chmod 0755 'update-motd.d/00-motd'
maybe chmod 0644 'usb_modeswitch.conf'
maybe chmod 0755 'usb_modeswitch.d'
maybe chmod 0755 'vim'
+18
View File
@@ -56,3 +56,21 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no
fi
}
fi
##-----------------------------------------------------
## better-ls
if [ -f /usr/local/bin/better-ls.sh ] && [ -n "$( echo $- | grep i )" ]; then
source /usr/local/bin/better-ls.sh
fi
##-----------------------------------------------------
## alias
if [ -f /usr/local/bin/alias.sh ] && [ -n "$( echo $- | grep i )" ]; then
source /usr/local/bin/alias.sh
fi
##-----------------------------------------------------
## better-history
if [ -f /usr/local/bin/better-history.sh ] && [ -n "$( echo $- | grep i )" ]; then
source /usr/local/bin/better-history.sh
fi
+1
View File
@@ -56,3 +56,4 @@ i2c:x:998:pi
gpio:x:997:pi
systemd-coredump:x:996:
docker:x:995:
wheel:x:1001:pi
+2
View File
@@ -55,3 +55,5 @@ spi:x:999:pi
i2c:x:998:pi
gpio:x:997:pi
systemd-coredump:x:996:
docker:x:995:
wheel:x:1001:
+1
View File
@@ -56,3 +56,4 @@ i2c:!::pi
gpio:!::pi
systemd-coredump:!*::
docker:!::
wheel:!::pi
+2
View File
@@ -55,3 +55,5 @@ spi:!::pi
i2c:!::pi
gpio:!::pi
systemd-coredump:!*::
docker:!::
wheel:!::
+138
View File
@@ -0,0 +1,138 @@
# Ansible managed
# Neofetch config file
# https://github.com/dylanaraps/neofetch
print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
info "Theme" theme
info "Icons" icons
info "CPU" cpu
info "Memory" memory
info "Local IP" local_ip
info "Users" users
info line_break
info cols
info line_break
}
# Kernel
kernel_shorthand="on"
# Distro
distro_shorthand="off"
os_arch="on"
# Uptime
uptime_shorthand="on"
# Shell
shell_path="off"
shell_version="on"
# CPU
speed_type="bios_limit"
speed_shorthand="off"
cpu_brand="on"
cpu_speed="on"
cpu_cores="logical"
cpu_temp="off"
# GPU
gpu_brand="on"
gpu_type="all"
# Resolution
refresh_rate="off"
# Gtk Theme / Icons / Font
gtk_shorthand="off"
gtk2="on"
gtk3="on"
# IP Address
public_ip_host="http://ident.me"
# Disk
disk_show=('/')
disk_subtitle="mount"
# Song
music_player="auto"
song_shorthand="off"
# Install Date
install_time="on"
install_time_format="12h"
# Text Colors
colors=(distro)
# Text Options
bold="on"
underline_enabled="on"
underline_char="-"
# Color Blocks
block_range=(0 7)
color_blocks="on"
block_width=3
block_height=1
# Progress Bars
bar_char_elapsed="-"
bar_char_total="="
bar_border="on"
bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
image_backend="ascii"
image_source="auto"
# Ascii Options
ascii_distro="auto"
ascii_colors=(distro)
ascii_bold="on"
# Image Options
image_loop="off"
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
crop_mode="normal"
crop_offset="center"
image_size="auto"
gap=3
yoffset=0
xoffset=0
background_color=
# Scrot Options
scrot="off"
scrot_cmd="auto"
scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
image_host="teknik"
# Misc Options
stdout="off"
# Config version.
#
# NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility.
config_version="3.4.0"
+1 -1
View File
@@ -31,7 +31,7 @@ Include /etc/ssh/sshd_config.d/*.conf
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
+1
View File
@@ -25,3 +25,4 @@ root ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "@include" directives:
@includedir /etc/sudoers.d
%wheel ALL=(ALL) NOPASSWD: ALL
@@ -0,0 +1,64 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="white"
background_user="blue"
texteffect_user="bold"
font_color_host="white"
background_host="light-blue"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_input="cyan"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
@@ -0,0 +1,64 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="white"
background_user="black"
texteffect_user="bold"
font_color_host="white"
background_host="dark-gray"
texteffect_host="bold"
font_color_pwd="black"
background_pwd="light-gray"
texteffect_pwd="bold"
font_color_git="black"
background_git="white"
texteffect_git="bold"
font_color_input="none"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
@@ -0,0 +1,65 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="light-gray"
background_user="green"
texteffect_user="bold"
font_color_host="black"
background_host="light-green"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="light-gray"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_input="green"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
@@ -0,0 +1,24 @@
##==============================================================================
## COLORS
##==============================================================================
font_color_user="white"
background_user="magenta"
texteffect_user="bold"
font_color_host="white"
background_host="light-magenta"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_input="light-magenta"
background_input="none"
texteffect_input="bold"
@@ -0,0 +1,65 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="black"
background_user="208"
texteffect_user="bold"
font_color_host="black"
background_host="180"
texteffect_host="bold"
font_color_pwd="black"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="208"
background_git="dark-gray"
texteffect_git="bold"
font_color_input="208"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
@@ -0,0 +1,65 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="light-gray"
background_user="red"
texteffect_user="bold"
font_color_host="light-gray"
background_host="dark-gray"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="light-gray"
texteffect_pwd="bold"
font_color_git="black"
background_git="white"
texteffect_git="bold"
font_color_input="red"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
@@ -0,0 +1,65 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
font_color_user="yellow"
background_user="dark-gray"
texteffect_user="bold"
font_color_host="black"
background_host="yellow"
texteffect_host="bold"
font_color_pwd="black"
background_pwd="light-yellow"
texteffect_pwd="bold"
font_color_git="black"
background_git="white"
texteffect_git="bold"
font_color_input="light-yellow"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
local separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
enable_vertical_padding=true # Add extra new line over prompt
##==============================================================================
## GIT
##==============================================================================
show_git=true # Enable/Disable git info if inside a repo
git_symbol_synced=''
git_symbol_unpushed='△'
git_symbol_unpulled='▽'
git_symbol_unpushedunpulled='○'
git_symbol_dirty='!'
git_symbol_dirty_unpushed='▲'
git_symbol_dirty_unpulled='▼'
git_symbol_dirty_unpushedunpulled='●'
+88
View File
@@ -0,0 +1,88 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - PYENV: if inside a Python Virtual environment.
## - TF: if inside a Terraform Workspace.
## - CLOCK: shows current time in H:M format.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
format="USER HOST PWD GIT PYENV TF"
font_color_user="white"
background_user="blue"
texteffect_user="bold"
font_color_host="white"
background_host="light-blue"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_pyenv="white"
background_pyenv="blue"
texteffect_pyenv="bold"
font_color_tf="purple"
background_tf="light-purple"
texteffect_tf="bold"
font_color_clock="white"
background_clock="light-blue"
texteffect_clock="bold"
font_color_input="45"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
separator_padding_left='' #
separator_padding_right='' #
prompt_horizontal_padding='' #
prompt_final_padding='' #
segment_padding=' ' #
enable_vertical_padding=true # Add extra new line over prompt
max_pwd_char="20"
##==============================================================================
## GIT
##==============================================================================
git_symbol_synced=''
git_symbol_unpushed=' ▲'
git_symbol_unpulled=' ▼'
git_symbol_unpushedunpulled=' ◆'
git_symbol_dirty=' ◔'
git_symbol_dirty_unpushed=' ◔ △'
git_symbol_dirty_unpulled=' ◔ ▽'
git_symbol_dirty_unpushedunpulled=' ◔ ◇'
git_update_period_minutes=15 # Use -1 to disable automatic updates
@@ -0,0 +1,88 @@
##==============================================================================
## COLORS
##
## Control the color and format scheme of the bash prompt.
## The prompt is divided into segments, listed below starting from the left:
## - USER: shows the user's name.
## - HOST: shows the host's name.
## - PWD: shows the current directory.
## - GIT: if inside a git repository, shows the name of current branch.
## - PYENV: if inside a Python Virtual environment.
## - TF: if inside a Terraform Workspace.
## - CLOCK: shows current time in H:M format.
## - INPUT: actual bash input.
##
## Valid color options:
## - white black light-gray dark-gray
## red green yellow blue cyan purple
## light-red light-green light-yellow light-blue light-cyan light-purple
## - Values in the range [0-255] for 256 bit colors. To check all number-color
## pairs for your terminal, you may run the following snippet by HaleTom:
## curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
## or search something like "bash 256 color codes" on the internet.
##
##==============================================================================
format="USER HOST PWD GIT PYENV TF"
font_color_user="white"
background_user="blue"
texteffect_user="bold"
font_color_host="white"
background_host="light-blue"
texteffect_host="bold"
font_color_pwd="dark-gray"
background_pwd="white"
texteffect_pwd="bold"
font_color_git="light-gray"
background_git="dark-gray"
texteffect_git="bold"
font_color_pyenv="white"
background_pyenv="blue"
texteffect_pyenv="bold"
font_color_tf="purple"
background_tf="light-purple"
texteffect_tf="bold"
font_color_clock="white"
background_clock="light-blue"
texteffect_clock="bold"
font_color_input="45"
background_input="none"
texteffect_input="bold"
##==============================================================================
## BEHAVIOR
##==============================================================================
separator_char='\uE0B0' # Separation character, '\uE0B0'=triangle
separator_padding_left='' #
separator_padding_right='' #
prompt_horizontal_padding='' #
prompt_final_padding='' #
segment_padding=' ' #
enable_vertical_padding=true # Add extra new line over prompt
max_pwd_char="20"
##==============================================================================
## GIT
##==============================================================================
git_symbol_synced=''
git_symbol_unpushed=' ▲'
git_symbol_unpulled=' ▼'
git_symbol_unpushedunpulled=' ◆'
git_symbol_dirty=' ◔'
git_symbol_dirty_unpushed=' ◔ △'
git_symbol_dirty_unpulled=' ◔ ▽'
git_symbol_dirty_unpushedunpulled=' ◔ ◇'
git_update_period_minutes=15 # Use -1 to disable automatic updates
@@ -0,0 +1,24 @@
##==============================================================================
## COLORS
##==============================================================================
font_color_user="black"
background_user="red"
texteffect_user="bold"
font_color_host="red"
background_host="black"
texteffect_host="bold"
font_color_pwd="black"
background_pwd="red"
texteffect_pwd="bold"
font_color_git="white"
background_git="black"
texteffect_git="bold"
font_color_input="red"
background_input="none"
texteffect_input="bold"
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
# Ansible managed
/usr/bin/neofetch --config /etc/neofetch/neofetch.config
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
uname -snrvm