* Allow the tty-backgrounds service to be stopped, and remove the

themes from all consoles when we do so.

svn path=/nixu/trunk/; revision=7140
This commit is contained in:
Eelco Dolstra 2006-11-26 23:26:37 +00:00
parent 0b1caba9d8
commit 19659d26c2
2 changed files with 21 additions and 6 deletions

View File

@ -14,11 +14,16 @@ rec {
md5 = "da49f04988ab04b7e0de117b0d25061a";
};
themePativo = fetchurl {
themePativo = fetchurl { # Yeah!
url = http://www.bootsplash.de/files/themes/Theme-Pativo.tar.bz2;
md5 = "9e13beaaadf88d43a5293e7ab757d569";
};
themeGNU = fetchurl {
url = http://www.bootsplash.de/files/themes/Theme-GNU.tar.bz2;
md5 = "61969309d23c631e57b0a311102ef034";
};
# The themes to use for each tty. For each tty except the first
# entry in the list, you can omit `theme' to get the same theme as
@ -32,13 +37,13 @@ rec {
{ tty = 2;
}
{ tty = 3;
theme = themeFrozenBubble;
theme = themeGNU;
}
{ tty = 4;
theme = themePativo;
theme = themeGNU;
}
{ tty = 6;
theme = themeFrozenBubble;
{ tty = 5;
theme = themePativo;
}
];

View File

@ -20,7 +20,7 @@ rec {
job = "
start on hardware-scan
script
start script
rm -f /etc/splash
ln -s ${themesUnpacked} /etc/splash
@ -39,6 +39,16 @@ script
done
end script
respawn sleep 10000 # !!! Hack
stop script
# Disable the theme on each console.
for tty in ${toString (map (x: x.tty) backgrounds)}; do
${splashutils}/bin/splash_util --tty $tty -c off || true
done
end script
";
}