Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
splashy
setup-splashy.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File setup-splashy.sh of Package splashy
#!/bin/bash # # Copyright (C) 2007 SUSE Linux Products GmbH # # Author: Holger Macht <hmacht@suse.de> # # This file is released under the GPLv2. # #%stage: setup # # never even 'return' from a mkinitrd script, which would result in an # aborted initrd build process if [ -d /etc/splashy ] && [ -f /usr/sbin/resume ]; then # find the current theme DUMMY=$(cat /etc/splashy/config.xml) THEME=$(echo $DUMMY | perl -p -e 's/<!--.*?-->//g;s/^.*<current_theme>//;s/<\/current_theme>.*$//;') if [ -z $THEME -o ! -d /usr/share/splashy/themes/$THEME ]; then echo "$0: warning, splashy theme not found in config file, using 'openSUSE'" THEME=openSUSE fi SPLASHY_FILES=" /etc/splashy/config.xml \ /usr/share/splashy/themes/$THEME/*" for I in `directfb-config --libs --input=keyboard --imageprovider=jpeg,gif,png --font=ft2,default`; do F=`dirname -- $I`/`basename -- $I .o`.so if [ -f $F ]; then if [ ! -d $tmp_mnt/`dirname $F` ]; then mkdir -p $tmp_mnt/`dirname $F` fi cp_bin $F $tmp_mnt/$F fi done for I in $SPLASHY_FILES; do [ ! -d $tmp_mnt/`dirname $I` ] && mkdir -p $tmp_mnt/`dirname $I` cp $I $tmp_mnt/$I done [ ! -d $tmp_mnt/etc/splashy/themes ] && \ ln -s /usr/share/splashy/themes $tmp_mnt/etc/splashy/ fi # never exit with nonzero, so we never cause mkinitrd to abort # - not having splash during resume is ugly, not booting is evil. # do not exit here - this script is sourced! true
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor