Skip to content
Permalink
Browse files

Move nerdgasm to prep

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 15, 2019
1 parent c03e2b8 commit fbda1ab8b9b8faf0e48548976f7a7397bd254566
Showing with 15 additions and 12 deletions.
  1. +0 −12 nems-build.sh
  2. +15 −0 nems-prep.sh
@@ -46,18 +46,6 @@ if [[ ! -d /var/log/nems ]]; then
mkdir /var/log/nems
fi

printf "The board's RTC reports: "
date

echo "Adjusting based on my nerdgasm..."
# We know I have a valid cert, but we'll ignore it because IF the clock is indeed wrong, it will fail
wget --no-check-certificate -O - https://www.baldnerd.com/nerdgasms/linuxdate/ajax.php?tz=192 | { read gmt; date -s "$gmt"; }

printf "New time is reported as: "
date

sleep 5

echo Building NEMS $ver
cd /usr/local/share/
mkdir nems
@@ -11,6 +11,21 @@ if [[ $EUID -ne 0 ]]; then
exit 1
else

printf "RTC reports date/time as: "
date

echo "Adjusting based on my nerdgasm..."
# We know I have a valid cert, but we'll ignore it because IF the clock is indeed wrong, it will fail
# Note - 192 is America/Toronto. If you are building this elsewhere, make sure you change the tz=
wget --no-check-certificate -O - https://www.baldnerd.com/nerdgasms/linuxdate/ajax.php?tz=192 | { read gmt; date -s "$gmt"; }

printf "New time is reported as: "
date

echo ""
sleep 5


# NEED TO ADD REPOS MANUALLY FOR NOW
# Pi:
#deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi firmware

0 comments on commit fbda1ab

Please sign in to comment.
You can’t perform that action at this time.