pax_global_header00006660000000000000000000000064121464150620014513gustar00rootroot0000000000000052 comment=686f89db449330300308d22ccd49e47affb7f1ff installer-feature-slideshow-0.2/000075500000000000000000000000001214641506200167775ustar00rootroot00000000000000installer-feature-slideshow-0.2/.gear-rules000064400000000000000000000000071214641506200210430ustar00rootroot00000000000000tar: . installer-feature-slideshow-0.2/55-slideshow.sh000075500000000000000000000014441214641506200215710ustar00rootroot00000000000000#!/bin/sh a= . install2-init-functions . shell-config slideshow_conf='/etc/alterator/slideshow.conf' mem=$(cat /proc/meminfo | grep MemTotal | egrep -o '[0-9]+') if [ "$mem" -le 300000 ] ; then # Don't bring up slideshow. mount-unionfs /etc if [ -s "$slideshow_conf" ]; then shell_config_set "$slideshow_conf" url /var/empty else # Just remove slideshow if there is no config file mount-unionfs /usr/share/install2/slideshow rm -fr /usr/share/install2/slideshow/* fi else url="$(shell_config_get "$slideshow_conf" url)" url="${url:-/usr/share/install2/slideshow}" # Setup proper localized slideshow lang=$(sed -n 's/^.*lang=\([^ ]*\).*/\1/gp' /proc/cmdline) lang="${lang%%_*}" if [ -n "$lang" -a -d "$url-$lang" ]; then shell_config_set "$slideshow_conf" url "$url-$lang" fi fi installer-feature-slideshow-0.2/installer-feature.spec000064400000000000000000000016331214641506200233040ustar00rootroot00000000000000Name: installer-feature-slideshow Version: 0.2 Release: alt1 Summary: Prepare slideshow License: GPL Group: System/Configuration/Other Url: http://www.altlinux.org/Installer/beans BuildArch: noarch Packager: Anton V. Boyarshinov Source: %name-%version.tar Obsoletes: installer-feature-rm-slideshow < %version Provides: installer-feature-rm-slideshow = %version-%release %description Setup proper localized slideshow or turn off slideshow in small memory conditions. %prep %setup %install %define hookdir %_datadir/install2/initinstall.d mkdir -p %buildroot%hookdir install -pm755 *.sh %buildroot%hookdir/ %files %hookdir/* %changelog * Mon May 20 2013 Mikhail Efremov 0.2-alt1 - Setup proper localized slideshow. - Rename to installer-feature-slideshow. - Use slideshow.conf if exists. * Thu Jul 30 2009 Anton V. Boyarshinov 0.1-alt1 - initial build