Group :: Sistema/Configurações/Rede
RPM: installer-feature-set-tz-stage3
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: installer-feature-set-tz-stage3
Version: 0.1
Release: alt1
Summary: Set TZ in stage3 from kernel command line
License: GPL
Group: System/Configuration/Other
Url: http://www.altlinux.org/Installer/beans
BuildArch: noarch
%description
This package sets destination system's timezone
from kernel command line (stage3 version).
%prep
%post
. shell-config
ZONE=$(cat /proc/cmdline | sed -n 's/^.* tz=\([^ ]*\).*/\1/gp')
if [ -n "$ZONE" ]; then
shell_config_set /etc/sysconfig/clock ZONE "'$ZONE'"
service clock tzset
fi
%files
%changelog
…
Todas as alterações você pod ver aqui
Version: 0.1
Release: alt1
Summary: Set TZ in stage3 from kernel command line
License: GPL
Group: System/Configuration/Other
Url: http://www.altlinux.org/Installer/beans
BuildArch: noarch
%description
This package sets destination system's timezone
from kernel command line (stage3 version).
%prep
%post
. shell-config
ZONE=$(cat /proc/cmdline | sed -n 's/^.* tz=\([^ ]*\).*/\1/gp')
if [ -n "$ZONE" ]; then
shell_config_set /etc/sysconfig/clock ZONE "'$ZONE'"
service clock tzset
fi
%files
%changelog
…
Todas as alterações você pod ver aqui