diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:54:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:54:25 +0000 |
commit | 613b5479a576e8b54bc261055d341466fa57a937 (patch) | |
tree | 4e8f56ead3c83759cf5c9005d350926275370f66 /debian/09console-setup | |
parent | Adding upstream version 060+5. (diff) | |
download | dracut-613b5479a576e8b54bc261055d341466fa57a937.tar.xz dracut-613b5479a576e8b54bc261055d341466fa57a937.zip |
Adding debian version 060+5-1.debian/060+5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/09console-setup')
-rw-r--r-- | debian/09console-setup/10-console.rules | 2 | ||||
-rwxr-xr-x | debian/09console-setup/console-setup.sh | 3 | ||||
-rwxr-xr-x | debian/09console-setup/module-setup.sh | 32 |
3 files changed, 37 insertions, 0 deletions
diff --git a/debian/09console-setup/10-console.rules b/debian/09console-setup/10-console.rules new file mode 100644 index 0000000..bbdb6f3 --- /dev/null +++ b/debian/09console-setup/10-console.rules @@ -0,0 +1,2 @@ +# Console initialization - keyboard, font, etc. +KERNEL=="tty0", RUN+="/sbin/initqueue --onetime --unique --name console-setup /lib/udev/console-setup" diff --git a/debian/09console-setup/console-setup.sh b/debian/09console-setup/console-setup.sh new file mode 100755 index 0000000..301b6f3 --- /dev/null +++ b/debian/09console-setup/console-setup.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +setupcon diff --git a/debian/09console-setup/module-setup.sh b/debian/09console-setup/module-setup.sh new file mode 100755 index 0000000..10821b0 --- /dev/null +++ b/debian/09console-setup/module-setup.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +check() { + local vardir + vardir=/var/lib/dracut + + [ -x /bin/setupcon ] || return 1 + setupcon --help 2>&1 | grep "\-\-setup-dir" > /dev/null || return 1 + + rm -rf $vardir/console-setup-dir + mkdir -p $vardir/console-setup-dir || return 1 + setupcon --setup-dir $vardir/console-setup-dir || return 1 + mv $vardir/console-setup-dir/morefiles $vardir/console-setup-files +} + +depends() { + return 0 +} + +install() { + local vardir + vardir=/var/lib/dracut + + cp -a $vardir/console-setup-dir/bin/* $initdir/bin/ + cp -a $vardir/console-setup-dir/etc/* $initdir/etc/ + # gzip is workaround a bug in current console-setup + inst_multiple gzip $(cat $vardir/console-setup-files) + inst ${moddir}/console-setup.sh /lib/udev/console-setup + inst_rules ${moddir}/10-console.rules +} |