fbs rev 5

Add a theme and a Makefile
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 02 14:08:52 2014 +0200 (2014-05-02)
parents 889bd09f2370
children cbddf8e3069d
files Makefile themes/default/init.sh themes/default/splash.cfg themes/default/splash.ppm.gz
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Fri May 02 14:08:52 2014 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +# Makefile for Fbs - FrameBuffer Splash
     1.5 +#
     1.6 +
     1.7 +DESTDIR?=
     1.8 +
     1.9 +install:
    1.10 +	mkdir -p $(DESTDIR)/etc $(DESTDIR)/sbin
    1.11 +	mkdir -p $(DESTDIR)/usr/share/fbs
    1.12 +	install -m 0644 fbs.conf $(DESTDIR)/etc
    1.13 +	install -m 0755 fbs $(DESTDIR)/sbin
    1.14 +	cp -a themes/* $(DESTDIR)/usr/share/fbs
    1.15 +	
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/themes/default/init.sh	Fri May 02 14:08:52 2014 +0200
     2.3 @@ -0,0 +1,8 @@
     2.4 +#!/bin/sh
     2.5 +# Expand the progress bar 
     2.6 +
     2.7 +width=$(fbset | fgrep "geometry" | cut -d " " -f 2)
     2.8 +bar_width=$(($width - 160))
     2.9 +
    2.10 +sed -i s"/BAR_WIDTH=.*/BAR_WIDTH=$bar_width/"  \
    2.11 +	$(dirname $0)/splash.cfg
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/themes/default/splash.cfg	Fri May 02 14:08:52 2014 +0200
     3.3 @@ -0,0 +1,9 @@
     3.4 +# progress bar position
     3.5 +BAR_LEFT=92
     3.6 +BAR_TOP=44
     3.7 +BAR_WIDTH=320
     3.8 +BAR_HEIGHT=14
     3.9 +# progress bar color
    3.10 +BAR_R=61
    3.11 +BAR_G=61
    3.12 +BAR_B=61
     4.1 Binary file themes/default/splash.ppm.gz has changed