summaryrefslogtreecommitdiffstats
path: root/debian/09console-setup/module-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
commit613b5479a576e8b54bc261055d341466fa57a937 (patch)
tree4e8f56ead3c83759cf5c9005d350926275370f66 /debian/09console-setup/module-setup.sh
parentAdding upstream version 060+5. (diff)
downloaddracut-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/module-setup.sh')
-rwxr-xr-xdebian/09console-setup/module-setup.sh32
1 files changed, 32 insertions, 0 deletions
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
+}