%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/2010/lib/systemd/system-generators/
Upload File :
Create Path :
Current File : //snap/core22/2010/lib/systemd/system-generators/serial-console-generator

#!/bin/sh

set -eux

NORMAL_DIR="${1}"
EARLY_DIR="${2}"
LATE_DIR="${3}"

for tty in $(cat /sys/class/tty/console/active); do
    case "${tty}" in
      tty[0-9]*)
      ;;
      *)
        mkdir -p "${NORMAL_DIR}/getty.target.wants"
        ln -sf /usr/lib/systemd/system/serial-console-conf@.service "${NORMAL_DIR}/getty.target.wants/serial-console-conf@${tty}.service"

      ;;
    esac
done

Zerion Mini Shell 1.0