--- modules.d/10i18n/console_init | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/modules.d/10i18n/console_init b/modules.d/10i18n/console_init index fa74595..0d4fa8f 100755 --- a/modules.d/10i18n/console_init +++ b/modules.d/10i18n/console_init @@ -63,12 +63,15 @@ dev_open() { dev=/dev/${1#/dev/} +devname=${dev#/dev/} [ -c "${dev}" ] || { echo "Usage: $0 device" >&2 exit 1 } +[ -e /tmp/console_init.${devname} ] && exit 0 + dev_open ${dev} for fd in 6 7; do @@ -85,3 +88,4 @@ set_font ${dev} set_keymap dev_close +>/tmp/console_init.${devname} -- 1.7.1.1
Attachment:
signature.asc
Description: PGP signature