From 750585be5fbdf67c8290a658e519392c83eef259 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 4 Nov 2010 13:19:46 +0100 Subject: splashy, port nettoyé MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/splashy/nutyx-attapu.jpg | Bin 208968 -> 0 bytes base/splashy/splashy | 146 ------------------------------------------ base/splashy/theme.xml | 137 --------------------------------------- 3 files changed, 283 deletions(-) delete mode 100644 base/splashy/nutyx-attapu.jpg delete mode 100755 base/splashy/splashy delete mode 100644 base/splashy/theme.xml (limited to 'base') diff --git a/base/splashy/nutyx-attapu.jpg b/base/splashy/nutyx-attapu.jpg deleted file mode 100644 index 941b9759e..000000000 Binary files a/base/splashy/nutyx-attapu.jpg and /dev/null differ diff --git a/base/splashy/splashy b/base/splashy/splashy deleted file mode 100755 index 78d7b6585..000000000 --- a/base/splashy/splashy +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: splashy -# Required-Start: mountkernfs -# Required-Stop: $all -# Default-Start: S -# Default-Stop: 0 6 -# Short-Description: A script to calculate the progress percentage for init scripts -# Description: This calculates the progress percentage -# for the scripts in /etc/rcS.d and -# /etc/rc$CURRENT_RUNLEVEL.d. -### END INIT INFO - -# Author: Tim Dijkstra , -# Luis Mondesi -# Luca Capello -# -# If called in the rc[06].d runlevels with the stop target it will start -# splashy in 'shutdown' mode. In the rcS.d runlevel it will try -# to start splashy if it didn't start yet from initramfs. -# -# When it decides to start splashy it will first calculate the -# progress percentage which will be used by the calls to splashy_update -# in the log_end_msg functions. -# This is really simple. We just count them and put them -# in alpha-numeric order. Their percentage is then just -# int( their number on the list * ( 100 / total number on list) ) -# -# Of course not all packages use log_end_msg yet, but that -# doesn't matter. The packages that do, will trigger the update -# anyway. This may result in big jumps in the percentage. -# The more scripts start using it, the more granular it will become. -# -# -# This script also needs to detect if Splashy is running and if not -# start it. It's assumed that this will only be run while halt/reboot -# and at RUNLEVEL S. -# - -PATH="/sbin:/bin:/usr/sbin:/usr/bin" -NAME="splashy" -DESC="Boot splash manager" -STEPS_DIR="/etc/$NAME/steps_dir" -DEBUG=0 - -[ -r "/etc/default/$NAME" ] && . "/etc/default/$NAME" - -. /etc/sysconfig/rc -. ${rc_functions} - -set -e - - -[ "$ENABLE" = "1" ] && log_warning_msg "To enable $NAME add 'splash' to the kernel command line. Use of ENABLE in /etc/default/$NAME is deprecated."; - -check_to_enable () { - ENABLE=0 - SINGLE=false - SPLASH=false - FBMODESET=false - - for x in $(cat /proc/cmdline); do - case $x in - single) - SINGLE="true" - ;; - splash) - SPLASH="true" - ;; - nosplash) - SPLASH="false" - ;; - vga=*|video=*) - FBMODESET="true" - ;; - esac - done - [ "$SPLASH" = "true" -a "$FBMODESET" = "true" ] && ENABLE=1 - [ "$SINGLE" = "true" ] && ENABLE=0 - - if [ "$ENABLE" = "0" ]; then - log_warning_msg "To enable $NAME on multiuser runlevel add 'splash' and a valid framebuffer videomode to the kernel command line" - exit 0 - fi -} - -calculate_steps () { - [ -f /etc/inittab ] && RLVL=`sed -n 's/id:\([2345]\):initdefault:/\1/ p' /etc/inittab` - - # - # Mount a tmpfs on $STEPS_DIR - # - # on Ubuntu our Steps dir gets umounted if using /dev/shm/splashy - # we will always use $STEPS_DIR and mount a tmpfs there - SHM_OPT= - [ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT="-osize=$SHM_SIZE" - mount -n -t tmpfs shmfs $STEPS_DIR - - TMP=`mktemp -p $STEPS_DIR` - - # While booting rcS will also be executed - # we only care about the scripts that actually call log_end_msg - # if not we could end up never completing our progressbar! - grep -l "Usage" ${rc_base}/rcsysinit.d/S* > $TMP 2> /dev/null || true - - for ILVL in ${RLVL:=2} 0 3 4 5 6; do - # in debian rc.local runs log_end_msg conditionally. we simply skip that - grep -l "Usage" ${rc_base}/rc$ILVL.d/[KS]* 2> /dev/null | grep -v rc.local >> $TMP || true - - NR=`sed -n -e '$=' $TMP` - I=1 - for SCR in `cat $TMP`; do - echo "$SCR $(($I*100/$NR))" - I=$(($I+1)) - done > "$STEPS_DIR/$ILVL-progress" - - # Truncate $TMP file - echo -n > $TMP - done - - # In the first stage of booting RUNLEVEL will be S - ln -sf "$STEPS_DIR/${RLVL:=2}-progress" "$STEPS_DIR/sysinit-progress" - rm -f $TMP - -} - -# Bug #400598,#401999 -if [ -z "${RUNLEVEL:-}" ]; then - # we need only the current level - RUNLEVEL=`runlevel | sed 's/^. //'` -fi - -case "$1" in - start) - calculate_steps $RUNLEVEL - ;; - - *) - N=/etc/init.d/$NAME - echo "Usage: $N {restart}" >&2 - exit 1 - ;; -esac - -exit 0 - diff --git a/base/splashy/theme.xml b/base/splashy/theme.xml deleted file mode 100644 index dd68f1e0b..000000000 --- a/base/splashy/theme.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - default - 1.1 - Default splashy theme - http://splashy.alioth.debian.org/themes - Splashy Team - - - - - 29 - 83 - 46 - 2 - - - - 224 - 89 - 0 - 250 - - - - yes - - 52 - 52 - 52 - 255 - - - - - - 127 - 127 - 127 - 255 - - - - forward - backward - forward - backward - - - yes - yes - yes - yes - - - - - nutyx-attapu.jpg - nutyx-attapu.jpg - suspend.png - suspend.png - error.png - - - - 0 - 0 - 0 - 0 - - - - - yes - - - 20 - 50 - 60 - 40 - - - - 0 - 0 - 0 - 127 - - - - yes - - 0 - 0 - 0 - 255 - - - - - - FreeSans.ttf - 10 - - - - 128 - 128 - 32 - 255 - - - - no - no - no - -- cgit v1.2.3-70-g09d2