Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion files/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ TIMEZONEFILE=$CONFIG_DIR/timezone

if [ -f "$TIMEZONEFILE" ]
then
cp $TIMEZONEFILE /etc/timezone
TIMEZONE=`cat $TIMEZONEFILE`
LOCALTIMEFILE="/usr/share/zoneinfo/$TIMEZONE"
if [ -f "$LOCALTIMEFILE" ]
then
ln -sf $LOCALTIMEFILE /etc/localtime
dpkg-reconfigure -f noninteractive tzdata
else
echo "unknown localtime"
fi
fi

###########################
Expand Down