Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- rc.sysinit | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 2931a7d..dd0a047 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -50,9 +50,8 @@ if [[ $HARDWARECLOCK ]]; then fi case $HARDWARECLOCK in - UTC) HWCLOCK_PARAMS+=" --utc --noadjfile";; - localtime) HWCLOCK_PARAMS+=" --localtime --noadjfile";; - *) HWCLOCK_PARAMS="";; + UTC) HWCLOCK_PARAMS=(--utc --noadjfile) ;; + localtime) HWCLOCK_PARAMS=(--localtime --noadjfile) ;; esac fi @@ -68,7 +67,7 @@ if [[ $HWCLOCK_PARAMS ]]; then export TZ=$TIMEZONE fi - { hwclock $HWCLOCK_PARAMS && hwclock --systz; } && stat_done || stat_fail + { hwclock "${HWCLOCK_PARAMS[@]}" && hwclock --systz; } && stat_done || stat_fail unset TZ fi -- 1.7.12