blob: 725461af106cf19f4755f42b2a97a81ca642b62b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
# Synchronize Raspberry Pi server time with master server
# This script should be run whenever an RPi reboots
cd sbhs_server/RPi_data
for ip in $(cat ipaddrs.txt)
do
echo $ip
ssh pi@$ip "sudo date --set \"$(date)\""
done
|