testing
This commit is contained in:
4
fix-raspian-defaults/root/boot/per-boot.d/00keep.sh
Normal file
4
fix-raspian-defaults/root/boot/per-boot.d/00keep.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
exit 0
|
||||
|
||||
7
fix-raspian-defaults/root/boot/per-once.d/00-bash.sh
Normal file
7
fix-raspian-defaults/root/boot/per-once.d/00-bash.sh
Normal 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
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update
|
||||
apt -y install ntpdate
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
PKGS="$(cat $DIR/packages.txt)"
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update
|
||||
apt -y install command-not-found
|
||||
13
fix-raspian-defaults/root/boot/per-once.d/99-setup-keys.sh
Normal file
13
fix-raspian-defaults/root/boot/per-once.d/99-setup-keys.sh
Normal 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
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /etc/setup
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# install bash and only bash so that the setup scripts can assume bash
|
||||
apt update
|
||||
apt install -y bash
|
||||
|
||||
if [ ! -e /etc/setup/setup-done ]; then
|
||||
/bin/bash << 'EOF'
|
||||
for FILE in /boot/setup-scripts/*.sh; do
|
||||
echo "running '$FILE'" | logger -s -t setup-scripts
|
||||
/bin/bash $FILE 2>&1 | logger -s -t setup-scripts
|
||||
done
|
||||
EOF
|
||||
echo "system init complete" | logger -s -t setup-scripts
|
||||
touch /etc/setup/setup-done
|
||||
fi
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
KEY_URL="https://sneak.cloud/authorized_keys"
|
||||
|
||||
curl -fLo /root/.ssh/authorized_keys --create-dirs $KEY_URL
|
||||
curl -fLo /home/pi/.ssh/authorized_keys --create-dirs $KEY_URL
|
||||
Reference in New Issue
Block a user