Skip to content

Commit

Permalink
Merge pull request guysoft#63 from netage/devel
Browse files Browse the repository at this point in the history
Make timezone configurable
  • Loading branch information
guysoft authored Jul 26, 2016
2 parents 93c34be + 87ead1d commit b78a266
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ else
fi


#override timezone
if [ "$FULLPAGEOS_OVERRIDE_TIMEZONE" != "default" ]
then
echo "$FULLPAGEOS_OVERRIDE_TIMEZONE" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
fi

#reach pi by name
echo "$FULLPAGEOS_OVERRIDE_HOSTNAME" > /etc/hostname
sed -i -e "s@raspberrypi@$FULLPAGEOS_OVERRIDE_HOSTNAME@g" /etc/hosts
Expand Down
3 changes: 3 additions & 0 deletions src/config
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ fi

[ -n "$FULLPAGEOS_OVERRIDE_HOSTNAME" ] || FULLPAGEOS_OVERRIDE_HOSTNAME=fullpageos

#override timezone, otherwise use image timezone
[ -n "$FULLPAGEOS_OVERRIDE_TIMEZONE" ] || FULLPAGEOS_OVERRIDE_TIMEZONE=default

[ -n "$FULLPAGEOS_INCLUDE_CHROMIUM" ] || FULLPAGEOS_INCLUDE_CHROMIUM=yes
[ -n "$FULLPAGEOS_INCLUDE_LIGHTTPD" ] || FULLPAGEOS_INCLUDE_LIGHTTPD=yes

Expand Down

0 comments on commit b78a266

Please sign in to comment.