mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
* 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:
parent
0b1caba9d8
commit
19659d26c2
@ -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;
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -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
|
||||
|
||||
";
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user