slitaz-boot-scripts 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 (21 months ago)
parents f12914c09028
children 7d4da3b01181
files etc/init.d/bootopts.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Mon Sep 11 23:36:42 2017 +0300
     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=}