1749852562

This commit is contained in:
2025-06-13 16:09:21 -06:00
parent 02daa57524
commit ce61bf7d9e
3 changed files with 17 additions and 3 deletions
+8
View File
@@ -15,13 +15,21 @@ echo "Making $dname"
mkdir $dname
echo "Copying the config files"
echo -e "\tBacking up gpsd config"
sudo cp /etc/default/gpsd $dname/gpsd
echo -e "\tBacking up chrony config"
sudo cp /etc/chrony/chrony.conf $dname/chrony.conf
echo -e "\tBacking up grafana config"
sudo cp /etc/grafana/grafana.ini $dname/grafana.ini
echo -e "\tBacking up influxdb config"
sudo cp /etc/influxdb/influxdb.conf $dname/influxdb.conf
echo -e "\tBacking up telegraf config"
sudo cp /etc/telegraf/telegraf.conf $dname/telegraf.conf
echo -e "\tBacking up /boot/firmware/config.txt"
sudo cp /boot/firmware/config.txt $dname/boot-firmware-config.txt
echo -e "\tBacking up gheclock-set config"
sudo cp /lib/udev/hwclock-set $dname/hwclock-set
echo -e "\tBacking up /etc/modules"
sudo cp /etc/modules $dname/etc-modules
if [ -f /etc/udev/rules.d/50-tty.rules ]; then
+1 -2
View File
@@ -15,8 +15,7 @@ sudo rpi-update
# run da raspberry pi config script
echo "Configure Raspberry Pi..."
echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\t Would you like the ARM I2C interface to be enabled? <Yes>\n\tkernel module loaded by default <Yes>\n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over
│ serial? <No>\n\tWould you like the serial port hardware to be enabled? <Yes>\n"
echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\t Would you like the ARM I2C interface to be enabled? <Yes>\n\tkernel module loaded by default <Yes>\n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over serial? <No>\n\tWould you like the serial port hardware to be enabled? <Yes>\n"
read -p "Press ENTER to Continue"
sudo raspi-config
+8 -1
View File
@@ -35,13 +35,20 @@ bash ./services.sh stop 1>/dev/null 2>/dev/null
bash ./dump_configs.sh
# replace dem by truncation
echo "Placing the new config files by truncation"
echo "Placing the new config files by truncation..."
echo -e "\tConfiguring gpsd"
sudo bash -c "cat $gpsd_new > $gpsd"
echo -e "\tConfiguring chrony"
sudo bash -c "cat $chrony_new > $chrony"
echo -e "\tConfiguring grafana"
sudo bash -c "cat $grafana_new > $grafana"
echo -e "\tConfiguring influxdb"
sudo bash -c "cat $influxdb_new > $influxdb"
echo -e "\tConfiguring telegraf"
sudo bash -c "cat $telegraf_new > $telegraf"
echo -e "\tConfiguring udev"
sudo bash -c "cat $udev_new > $udev_rule"
echo -e "\tConfiguring heclockset"
sudo bash -c "cat $hwclockset_new > $hwclockset"
# check if /boot/firmware/config.txt is configured yet