testan a reboold
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
# Precision Timekeeping Fuckery Additions
|
||||
## GPS PPS GPIO Signal
|
||||
dtoverlay=pps-gpio,gpiopin=23
|
||||
dtoverlay=pps-gpio,gpiopin=18
|
||||
|
||||
## GPS GPIO UART
|
||||
enable_uart=1
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
dev=$1
|
||||
# dev=$1
|
||||
@@ -2,3 +2,4 @@
|
||||
# set hardware I2C RTC hourly
|
||||
0 * * * * /bin/bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log"
|
||||
@reboot /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/root-crontab.log
|
||||
@reboot bash /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/root-crontab.log
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ echo "Starting configure script..."
|
||||
# running (warn level)
|
||||
# bash ./reconfig_full.sh ./running-warn-level-conf
|
||||
# debug/dev mode
|
||||
bash ./reconfig_full.sh ./debug-level-conf
|
||||
bash ./reconfig_full.sh ./info-level-conf-huawaii
|
||||
|
||||
# enable services
|
||||
echo "Enabling Services..."
|
||||
|
||||
+4
-4
@@ -16,8 +16,8 @@ influxdb="/etc/influxdb/influxdb.conf"
|
||||
telegraf="/etc/telegraf/telegraf.conf"
|
||||
udev_rule="/etc/udev/rules.d/50-tty.rules"
|
||||
bootfirmwareconfig="/boot/firmware/config.txt"
|
||||
hwclockset="/lib/udev/hwclock-set"
|
||||
## new conf file paths
|
||||
# hwclockset="/lib/udev/hwclock-set"
|
||||
# new conf file paths
|
||||
gpsd_new=""$1/gpsd""
|
||||
chrony_new="$1/chrony.conf"
|
||||
grafana_new="$1/grafana.ini"
|
||||
@@ -25,7 +25,7 @@ influxdb_new="$1/influxdb.conf"
|
||||
telegraf_new="$1/telegraf.conf"
|
||||
udev_new="$1/50-tty.rules"
|
||||
bootfirmwareconfig_new="$1/boot-firmware-config.txt"
|
||||
hwclockset_new="$1/hwclock-set"
|
||||
# hwclockset_new="$1/hwclock-set"
|
||||
crontab_new="$1/root-crontab"
|
||||
|
||||
# stop da services
|
||||
@@ -49,7 +49,7 @@ sudo bash -c "cat $telegraf_new > $telegraf"
|
||||
echo -e "\tConfiguring udev"
|
||||
sudo bash -c "cat $udev_new > $udev_rule"
|
||||
echo -e "\tConfiguring hwclockset"
|
||||
sudo bash -c "cat $hwclockset_new > $hwclockset"
|
||||
# sudo bash -c "cat $hwclockset_new > $hwclockset"
|
||||
|
||||
# check if /boot/firmware/config.txt is configured yet
|
||||
grep -q -e "GPS PPS signals" /boot/firmware/config.txt
|
||||
|
||||
Reference in New Issue
Block a user