diff options
Diffstat (limited to 'debian/09console-setup/module-setup.sh')
-rwxr-xr-x | debian/09console-setup/module-setup.sh | 32 |
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 +} |