File tree Expand file tree Collapse file tree 11 files changed +59
-7
lines changed
rootfs-overlay/etc/profile.d
rootfs-overlay/etc/profile.d Expand file tree Collapse file tree 11 files changed +59
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,18 @@ Attention:
2323- If a wpa_supplicant.conf file is present in /boot, the initial setup is skipped during first run.
2424- The Raspberry Pi 0 W doesn't support 5GHz networks!
2525
26+ ### Timezone configuration
27+
28+ The system time is automatically set with NTP and the default timezone is UTC.
29+
30+ - To set another timezone create a file named ` timezone ` in the root of this boot partition.
31+ - Content is a single line containing the Linux TZ name.
32+ See < https://en.wikipedia.org/wiki/List_of_tz_database_time_zones > for a list of valid TZ database names.
33+ Examples:
34+ - Europe/Copenhagen
35+ - Asia/Hong_Kong
36+ - America/Vancouver
37+
2638### Bluetooth Serial Console
2739
2840To enable a Bluetooth serial console, create a marker file ` btconsole ` in the root of this boot partition.
Original file line number Diff line number Diff line change 1+ Europe/Zurich
Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ export YIO_OS_VERSION=$BUILD_VERSION
1212export YIO_OS_GITHASH=$GIT_HASH
1313export YIO_LOG_DIR=/var/log
1414export YIO_LOG_DIR_UPDATE=/boot/log
15+ export YIO_CFG_OVERRIDE_DIR=/boot
Original file line number Diff line number Diff line change @@ -22,6 +22,18 @@ Attention:
2222- If a wpa_supplicant.conf file is present in /boot, the initial setup is skipped during first run.
2323- The Raspberry Pi 0 W doesn't support 5GHz networks!
2424
25+ ### Timezone configuration
26+
27+ The system time is automatically set with NTP and the default timezone is UTC.
28+
29+ - To set another timezone create a file named ` timezone ` in the root of this boot partition.
30+ - Content is a single line containing the Linux TZ name.
31+ See < https://en.wikipedia.org/wiki/List_of_tz_database_time_zones > for a list of valid TZ database names.
32+ Examples:
33+ - Europe/Copenhagen
34+ - Asia/Hong_Kong
35+ - America/Vancouver
36+
2537### Bluetooth Serial Console
2638
2739To enable a Bluetooth serial console, create a marker file ` btconsole ` in the root of this boot partition.
Original file line number Diff line number Diff line change 1+ Europe/Zurich
Original file line number Diff line number Diff line change 1+ # home directory is not freely changeable!
2+ # systemd services don't support env variables in ExecStart!
3+ export YIO_HOME=/opt/yio
4+ export YIO_APP_DIR=${YIO_HOME} /app
5+ export YIO_PLUGIN_DIR=${YIO_HOME} /app-plugins
6+ export YIO_MEDIA_DIR=${YIO_HOME} /media
7+ export YIO_SCRIPT_DIR=${YIO_HOME} /scripts
8+ export YIO_WEB_CONFIGURATOR_DIR=${YIO_HOME} /web-configurator
9+ # remote-os release, set during build
10+ export YIO_OS_VERSION=$BUILD_VERSION
11+ # Git hash of the remote-os repo, set during build
12+ export YIO_OS_GITHASH=$GIT_HASH
13+ export YIO_LOG_DIR=/var/log
14+ export YIO_LOG_DIR_UPDATE=/boot/log
15+ export YIO_CFG_OVERRIDE_DIR=/boot
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to YIO Remote"
1515BR2_INIT_SYSTEMD=y
1616BR2_TARGET_GENERIC_ROOT_PASSWD="yioremote"
1717BR2_GENERATE_LOCALE="en_US.UTF-8"
18- BR2_TARGET_LOCALTIME="Europe/Copenhagen "
18+ BR2_TARGET_LOCALTIME="UTC "
1919BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_YIOS_PATH)/rootfs-overlay $(BR2_EXTERNAL_YIOS_PATH)/board/remote/rootfs-overlay"
2020BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_YIOS_PATH)/scripts/post-build.sh"
2121BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_YIOS_PATH)/scripts/post-image.sh"
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ BR2_TARGET_GENERIC_HOSTNAME="yio-dev"
1717BR2_TARGET_GENERIC_ISSUE="Welcome to YIO Developer Edition"
1818BR2_INIT_SYSTEMD=y
1919BR2_TARGET_GENERIC_ROOT_PASSWD="yioremote"
20+ BR2_GENERATE_LOCALE="en_US.UTF-8"
21+ BR2_TARGET_LOCALTIME="UTC"
2022BR2_TARGET_GENERIC_GETTY_PORT="tty1"
2123BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_YIOS_PATH)/rootfs-overlay $(BR2_EXTERNAL_YIOS_PATH)/board/raspberrypi/rootfs-overlay"
2224BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_YIOS_PATH)/scripts/post-build.sh"
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ BR2_TARGET_GENERIC_HOSTNAME="yio-dev"
1818BR2_TARGET_GENERIC_ISSUE="Welcome to YIO Developer Edition"
1919BR2_INIT_SYSTEMD=y
2020BR2_TARGET_GENERIC_ROOT_PASSWD="yioremote"
21+ BR2_GENERATE_LOCALE="en_US.UTF-8"
22+ BR2_TARGET_LOCALTIME="UTC"
2123BR2_TARGET_GENERIC_GETTY_PORT="tty1"
2224BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_YIOS_PATH)/rootfs-overlay $(BR2_EXTERNAL_YIOS_PATH)/board/raspberrypi/rootfs-overlay"
2325BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_YIOS_PATH)/scripts/post-build.sh"
Original file line number Diff line number Diff line change 44. /etc/profile.d/yio.sh
55. /etc/profile.d/qt.sh
66
7+ if [[ -f ${YIO_CFG_OVERRIDE_DIR} /timezone ]]; then
8+ export TZ=" $( cat ${YIO_CFG_OVERRIDE_DIR} /timezone) "
9+ else
10+ export TZ=" $( cat /etc/timezone) "
11+ fi
12+
713${YIO_SCRIPT_DIR} /wifi-copy-config.sh
814
915${YIO_SCRIPT_DIR} /firstrun.sh
You can’t perform that action at this time.
0 commit comments