Imported scripts from private repository and enforced the naming convention

This commit is contained in:
Michele Cereda
2022-03-04 00:09:59 +01:00
parent a02453cc47
commit b2a057281c
29 changed files with 104 additions and 20 deletions

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env sh
# https://wiki.alpinelinux.org/wiki/Raspberry_Pi_-_Headless_Installation
setup-ntp -c chrony
setup-keymap
setup-hostname raspberrypi
setup-timezone -z Europe/Amsterdam
setup-lbu -q
setup-apkcache
setup-apkrepos
apk add rng-tools
rc-update add rngd boot
# rc-update add wpa_supplicant boot
rc-update add urandom boot
mount -o remount,rw /media/mmcblk0p1
rm /media/mmcblk0p1/headless.apkovl.tar.gz
rm /media/mmcblk0p1/wifi.txt
rc-update del local default
rm /etc/local.d/headless.start
passwd
adduser mek
apk add sudo
echo "mek ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/mek
lbu commit -d
reboot