mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-19 12:13:19 +02:00
0b1caba9d8
background. Each console can have a different theme. The mapping from consoles to themes is specified in splash-themes.nix. svn path=/nixu/trunk/; revision=7137
17 lines
395 B
Bash
17 lines
395 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out
|
|
|
|
tar xvfj $theme -C $out
|
|
|
|
themeName=$(cd $out && ls)
|
|
|
|
for i in $out/$themeName/config/*.cfg; do
|
|
echo "converting $i"
|
|
# Rewrite /etc paths. Also, the file names
|
|
# config/bootsplash-<RES>.cfg should be <RES>.cfg.
|
|
sed "s^/etc/bootsplash/themes^$out^g" < $i > $out/$themeName/$(basename $i | sed 's^.*-^^')
|
|
done
|
|
|
|
rm $out/$themeName/config/*.cfg
|