From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/sysconfigs/consolecolor | 32 ++++++++++++++++++++++++++++++++ repo/sysconfigs/sysconfigs.xibuild | 26 ++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100755 repo/sysconfigs/consolecolor (limited to 'repo/sysconfigs') diff --git a/repo/sysconfigs/consolecolor b/repo/sysconfigs/consolecolor new file mode 100755 index 0000000..1b55bb6 --- /dev/null +++ b/repo/sysconfigs/consolecolor @@ -0,0 +1,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 +} diff --git a/repo/sysconfigs/sysconfigs.xibuild b/repo/sysconfigs/sysconfigs.xibuild index c3723c1..85f7f28 100644 --- a/repo/sysconfigs/sysconfigs.xibuild +++ b/repo/sysconfigs/sysconfigs.xibuild @@ -1,11 +1,13 @@ #!/bin/sh -MAKEDEPS="" -DEPS="sh" +MAKEDEPS="sh" +DEPS="mksh" PKG_VER=N/A DESC="Default system configs for xilinux" +ADDITIONAL="consolecolor" + package () { mkdir -p $PKG_DEST/etc/ mkdir -p $PKG_DEST/etc/sysconfig @@ -92,6 +94,26 @@ DOCUMENTATION_URL="https://xi.davidovski.xyz" SUPPORT_URL="https://xi.davidovski.xyz" BUG_REPORT_URL="https://xi.davidovski.xyz" LOGO=xilinux-logo +EOF + cat > $PKG_DEST/etc/default/useradd << "EOF" +GROUP=999 +HOME=/home +INACTIVE=-1 +EXPIRE= +SHELL=/bin/mksh +SKEL=/etc/skel +CREATE_MAIL_SPOOL=yes +LOG_INIT=yes +EOF + + mkdir -p $PKG_DEST/etc/init.d + install -m755 consolecolor $PKG_DEST/etc/init.d/ + + mkdir -p $PKG_DEST/etc/runlevels/boot + ln -s /etc/init.d/consolecolor $PKG_DEST/etc/runlevels/boot/consolecolor + + cat > $PKG_DEST/etc/shells << "EOF" + /bin/sh EOF } -- cgit v1.2.1