diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-11-04 13:19:46 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-11-04 13:19:46 +0100 |
commit | 750585be5fbdf67c8290a658e519392c83eef259 (patch) | |
tree | e456491154300ddda3a8837d0551c27bcb6b7fc2 /base | |
parent | b3cff4ece06fc377abef2971100e29ce4a98c9a6 (diff) | |
download | nutyx-pakxe-750585be5fbdf67c8290a658e519392c83eef259.tar.gz nutyx-pakxe-750585be5fbdf67c8290a658e519392c83eef259.tar.bz2 nutyx-pakxe-750585be5fbdf67c8290a658e519392c83eef259.tar.xz nutyx-pakxe-750585be5fbdf67c8290a658e519392c83eef259.zip |
splashy, port nettoyé
Diffstat (limited to 'base')
-rw-r--r-- | base/splashy/nutyx-attapu.jpg | bin | 208968 -> 0 bytes | |||
-rwxr-xr-x | base/splashy/splashy | 146 | ||||
-rw-r--r-- | base/splashy/theme.xml | 137 |
3 files changed, 0 insertions, 283 deletions
diff --git a/base/splashy/nutyx-attapu.jpg b/base/splashy/nutyx-attapu.jpg Binary files differdeleted file mode 100644 index 941b9759e..000000000 --- a/base/splashy/nutyx-attapu.jpg +++ /dev/null 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 <newsuser@famdijkstra.org>, -# Luis Mondesi <lemsx1@gmail.com> -# Luca Capello <luca@pca.it> -# -# 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<splashy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://splashy.alioth.debian.org/schemas/1.1/theme.xsd"> - <info> - <!-- theme name is case sensitive. use directory name --> - <name>default</name> - <version>1.1</version> - <description>Default splashy theme</description> - <urls>http://splashy.alioth.debian.org/themes</urls> - <author>Splashy Team</author> - </info> - <progressbar> - <!-- here are tags to set the bar... x coordinate, - y coordinate, width and height are for the progress bar. - Remember that x, y, width and height are expressed in percentage --> - <dimension> - <x>29</x> - <y>83</y> - <width>46</width> - <height>2</height> - </dimension> - <!-- here you can set the color of the progressbar... - set the amount of red, green, blue and alpha channel. - Remember that the max value is 255 and the minumun value is 0--> - <color> - <red>224</red> - <green>89</green> - <blue>0</blue> - <alpha>250</alpha> - </color> - <!-- whether or not you want a border around the progressbar. default: no --> - <border> - <enable>yes</enable> - <color> - <red>52</red> - <green>52</green> - <blue>52</blue> - <alpha>255</alpha> - </color> - </border> - <!-- here you can set the color of the progressbar background - set the amount of red, green, blue and alpha channel. - Remember that the max value is 255 and the minumun value is 0--> - <background> - <color> - <red>127</red> - <green>127</green> - <blue>127</blue> - <alpha>255</alpha> - </color> - </background> - <direction> - <boot>forward</boot> - <shutdown>backward</shutdown> - <resume>forward</resume> - <suspend>backward</suspend> - </direction> - <visibility> - <boot>yes</boot> - <shutdown>yes</shutdown> - <resume>yes</resume> - <suspend>yes</suspend> - </visibility> - </progressbar> - <!-- conventional path: /etc/splashy/themes + theme-name --> - <background> - <boot>nutyx-attapu.jpg</boot> - <shutdown>nutyx-attapu.jpg</shutdown> - <resume>suspend.png</resume> - <suspend>suspend.png</suspend> - <errorimg>error.png</errorimg> - <!-- resolution of the images. this value affects where - the progressbar will be drawn. If VALUE <= 0, then percentages - of the screen width and hight will be assumed --> - <dimension> - <!-- NOTE: x and y are not used by splashy --> - <x>0</x> - <y>0</y> - <width>0</width> - <height>0</height> - </dimension> - </background> - <textbox> - <!-- whether you want the textbox always - shown or no. If no, it will be shown only on error, - see autoverboseonerror --> - <enable>yes</enable> - <!-- here are tags to set the text area... x coordinate, - y coordinate, width and height are for the text area. - Remember that x, y, width and height are expressed in percentage - or pixel units --> - <dimension> - <x>20</x> - <y>50</y> - <width>60</width> - <height>40</height> - </dimension> - <!-- here you can set the color of the text area... - set the amount of red, green, blue and alpha channel. - Remember that the max value is 255 and the minumun value is 0--> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - <alpha>127</alpha> - </color> - <!-- whether or not you want a border around the progressbar. default: no --> - <border> - <enable>yes</enable> - <color> - <red>0</red> - <green>0</green> - <blue>0</blue> - <alpha>255</alpha> - </color> - </border> - <text> - <!-- font file to use, path relative to theme --> - <font> - <file>FreeSans.ttf</file> - <height>10</height> - </font> - <!-- here you can set the color of the text/font... - set the amount of red, green, blue and alpha channel. - Remember that the max value is 255 and the minumun value is 0--> - <color> - <red>128</red> - <green>128</green> - <blue>32</blue> - <alpha>255</alpha> - </color> - </text> - </textbox> - <autoverboseonerror>no</autoverboseonerror> - <fadein>no</fadein> - <fadeout>no</fadeout> -</splashy> |