testing more

This commit is contained in:
2019-10-04 06:46:23 -07:00
parent 0c72b2c372
commit 5273235554
14 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
exit 0

View File

@@ -0,0 +1,7 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# install bash and only bash so that the setup scripts can assume bash
apt update
apt install -y bash

View File

@@ -0,0 +1,6 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt update
apt -y install ntpdate
ntpdate time.apple.com

View File

@@ -0,0 +1,15 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PKGS="$(cat $DIR/packages.txt)"
export DEBIAN_FRONTEND=noninteractive
apt update
apt upgrade -y
for PKG in $PKGS ; do
apt install -y $PKG
done

View File

@@ -0,0 +1,7 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt update
apt -y install command-not-found
apt-file update
update-command-not-found

View File

@@ -0,0 +1,13 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt update && apt install -y curl
KEY_URL="https://sneak.cloud/authorized_keys"
curl -fLo /root/.ssh/authorized_keys --create-dirs $KEY_URL && \
passwd -d root
curl -fLo /home/pi/.ssh/authorized_keys --create-dirs $KEY_URL && \
passwd -d pi
chown -R pi:pi /home/pi/.ssh

View File

@@ -0,0 +1,40 @@
apt-transport-https
bash-completion
build-essential
byobu
ca-certificates
command-not-found
cryptsetup-bin
curl
daemontools
dirmngr
dnsutils
gnupg-agent
gnupg2
golang-go
haveged
inetutils-ping
iptables-persistent
iptraf-ng
jq
less
lsof
man-db
mosh
nmap
ntp
opensc
pbzip2
pcscd
pinentry-curses
pv
rsync
runit
runit-systemd
scdaemon
screen
socat
software-properties-common
usbmount
vim
wget

View File

@@ -0,0 +1 @@
REGDOMAIN=US

View File

@@ -0,0 +1,10 @@
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"

View File

@@ -0,0 +1 @@
LANG=en_US.UTF-8

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Run user provided scripts on boot
ConditionPathExists=/usr/lib/raspi-ini/run-parts.sh
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/raspi-ini/run-parts.sh
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Prevent *.sh from returning itself if there are no matches
shopt -s nullglob
# Run every per-once script
run-parts --regex '.*\.sh$' /boot/per-once.d |
# Rename every per-once script
for f in /boot/per-once.d/*.sh; do
mv $f $(dirname $f)/$(basename $f .sh).$(date +%F@%H.%M.%S)
done
# Run every per-boot script
run-parts --regex '.*\.sh$' /boot/per-boot.d