slitaz-boot-scripts diff etc/init.d/bootopts.sh @ rev 443
etc/init.d/bootopts.sh: check cmdline for tz option.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Sep 12 02:00:02 2017 +0300 (2017-09-12) |
parents | b09c326b9374 |
children | da1ed39c4f67 |
line diff
1.1 --- a/etc/init.d/bootopts.sh Mon Jan 09 02:20:10 2017 +0200 1.2 +++ b/etc/init.d/bootopts.sh Tue Sep 12 02:00:02 2017 +0300 1.3 @@ -81,6 +81,12 @@ 1.4 action 'Setting system keymap to: %s...' "$KEYMAP" 1.5 echo "$KEYMAP" > /etc/keymap.conf 1.6 status ;; 1.7 + tz=*) 1.8 + # Check for a specified timezone (tz=*). 1.9 + TZ=${opt#tz=} 1.10 + action 'Setting timezone to: %s...' "$TZ" 1.11 + echo "$TZ" > /etc/TZ 1.12 + status ;; 1.13 font=*) 1.14 # Check for a specified console font (font=*). 1.15 FONT=${opt#font=}