summaryrefslogtreecommitdiff
path: root/repo/sysconfigs/consolecolor
blob: 1b55bb6917eda675909cf1142dae78131c52053a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/sbin/openrc-run
description="Sets a color for the consoles."

depend()
{
	need termencoding
	after hotplug bootmisc modules
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
}

start()
{
    for tty in /dev/tty*; do {
		printf "\033]P0191919"
		printf "\033]P1A54242"
		printf "\033]P28C9440"
		printf "\033]P3DE935F"
		printf "\033]P45F819D"
		printf "\033]P585678F"
		printf "\033]P65E8D87"
		printf "\033]P7707880"
		printf "\033]P8373B41"
		printf "\033]P9CC6666"
		printf "\033]PAB5BD68"
		printf "\033]PBF0C674"
		printf "\033]PC81A2BE"
		printf "\033]PDB294BB"
		printf "\033]PEB4D6D1"
		printf "\033]PFFEFEFE"
        printf "\033[2J"
    } > $tty; done
}