diff --git a/dump_configs.sh b/dump_configs.sh index be11b84..411850e 100644 --- a/dump_configs.sh +++ b/dump_configs.sh @@ -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 diff --git a/installer1.sh b/installer1.sh index c65f7ac..d611bb1 100644 --- a/installer1.sh +++ b/installer1.sh @@ -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? \n\tkernel module loaded by default \n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over │ - │ serial? \n\tWould you like the serial port hardware to be enabled? \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? \n\tkernel module loaded by default \n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over serial? \n\tWould you like the serial port hardware to be enabled? \n" read -p "Press ENTER to Continue" sudo raspi-config diff --git a/reconfig_full.sh b/reconfig_full.sh index b13c0e6..19d3e5e 100644 --- a/reconfig_full.sh +++ b/reconfig_full.sh @@ -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