From ac5a44bfda487d8f9bb7a135661b894a55a02443 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 8 Jan 2022 15:23:30 +0100 Subject: [PATCH] Remove obsolete files --- usr/lib/modprobe.d/blacklist-framebuffer.conf | 30 ------- usr/sbin/console_init | 88 ------------------- 2 files changed, 118 deletions(-) delete mode 100644 usr/lib/modprobe.d/blacklist-framebuffer.conf delete mode 100755 usr/sbin/console_init diff --git a/usr/lib/modprobe.d/blacklist-framebuffer.conf b/usr/lib/modprobe.d/blacklist-framebuffer.conf deleted file mode 100644 index c959ba1..0000000 --- a/usr/lib/modprobe.d/blacklist-framebuffer.conf +++ /dev/null @@ -1,30 +0,0 @@ -# Framebuffer drivers are generally buggy and poorly-supported, and cause -# suspend failures, kernel panics and general mayhem. For this reason we -# never load them automatically. -blacklist aty128fb -blacklist atyfb -blacklist radeonfb -blacklist cirrusfb -blacklist cyber2000fb -blacklist cyblafb -blacklist gx1fb -blacklist hgafb -blacklist i810fb -blacklist intelfb -blacklist kyrofb -blacklist lxfb -blacklist matroxfb_base -blacklist neofb -blacklist nvidiafb -blacklist pm2fb -blacklist rivafb -blacklist s1d13xxxfb -blacklist savagefb -blacklist sisfb -blacklist sstfb -blacklist tdfxfb -blacklist tridentfb -blacklist vesafb -blacklist vfb -blacklist vga16fb -blacklist viafb diff --git a/usr/sbin/console_init b/usr/sbin/console_init deleted file mode 100755 index 110cb0a..0000000 --- a/usr/sbin/console_init +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/sh -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh - -[ -e /etc/vconsole.conf ] && . /etc/vconsole.conf - -DEFAULT_FONT=LatArCyrHeb-16 -DEFAULT_KEYMAP=/etc/sysconfig/console/default.kmap - -set_keyboard() { - local param - - [ "${UNICODE}" = 1 ] && param=-u || param=-a - kbd_mode ${param} -} - -set_terminal() { - local dev=$1 - - if [ "${UNICODE}" = 1 ]; then - printf '\033%%G' >&7 - stty -F ${dev} iutf8 - else - printf '\033%%@' >&7 - fi -} - -set_keymap() { - local utf_switch - - if [ -z "${KEYMAP}" ]; then - [ -f "${DEFAULT_KEYMAP}" ] && KEYMAP=${DEFAULT_KEYMAP} - fi - - [ -n "${KEYMAP}" ] || return 1 - - [ "${UNICODE}" = 1 ] && utf_switch=-u - - loadkeys -q ${utf_switch} ${KEYMAP} ${EXT_KEYMAPS} -} - -set_font() { - local dev=$1; local trans=''; local uni='' - - [ -z "${FONT}" ] && FONT=${DEFAULT_FONT} - [ -n "${FONT_MAP}" ] && trans="-m ${FONT_MAP}" - [ -n "${FONT_UNIMAP}" ] && uni="-u ${FONT_UNIMAP}" - - setfont ${FONT} -C ${dev} ${trans} ${uni} -} - -dev_close() { - exec 6>&- - exec 7>&- -} - -dev_open() { - local dev=$1 - - exec 6<${dev} && \ - exec 7>>${dev} -} - -dev=/dev/${1#/dev/} -devname=${dev#/dev/} - -[ -c "${dev}" ] || { - echo "Usage: $0 device" >&2 - exit 1 -} - -dev_open ${dev} - -for fd in 6 7; do - if ! [ -t ${fd} ]; then - echo "ERROR: File descriptor not opened: ${fd}" >&2 - dev_close - exit 1 - fi -done - -set_keyboard -set_terminal ${dev} -set_font ${dev} -set_keymap - -dev_close -