0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.227.3


Current Path : /snap/core22/1722/lib/systemd/system-generators/
Upload File :
Current File : //snap/core22/1722/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