2019-01-15 02:37:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Just run this script once after a fresh sd card build
|
|
|
|
# to prepare the image for release as a downloadable sd card image
|
|
|
|
|
2019-09-22 14:25:43 +02:00
|
|
|
# SSH Pubkeys (make unique for every sd card image install)
|
2019-01-15 02:37:14 +01:00
|
|
|
echo "deleting SSH Pub keys ..."
|
|
|
|
echo "they will get recreated on fresh bootup, by _bootstrap.sh service"
|
|
|
|
sudo rm /etc/ssh/ssh_host_*
|
|
|
|
echo "OK"
|
|
|
|
|
2020-03-18 14:07:56 -07:00
|
|
|
# https://github.com/rootzoll/raspiblitz/issues/1068#issuecomment-599267503
|
|
|
|
echo ""
|
|
|
|
echo "deleting local DNS confs ..."
|
|
|
|
sudo rm /etc/resolv.conf
|
|
|
|
echo "OK"
|
|
|
|
|
2020-07-22 21:20:11 +02:00
|
|
|
# https://github.com/rootzoll/raspiblitz/issues/1371
|
|
|
|
echo ""
|
|
|
|
echo "deleting local WIFI conf ..."
|
|
|
|
sudo rm /boot/wpa_supplicant.conf 2>/dev/null
|
|
|
|
echo "OK"
|
|
|
|
|
2019-01-15 02:37:14 +01:00
|
|
|
echo " "
|
|
|
|
echo "Will shutdown now."
|
2019-02-15 15:39:39 +01:00
|
|
|
echo "Wait until Raspberry LEDs show no activity anymore."
|
2019-01-15 02:37:14 +01:00
|
|
|
echo "Then remove SD card and make an release image from it."
|
|
|
|
sudo shutdown now
|