ae22d39472
Update install.d/20-stty so that we try to start a getty on ttyS0 and ttyS1 when using systemd. Change-Id: Id5b605c74bf82855af0af4d0f95659cdd3a7b3a0
13 lines
462 B
Bash
Executable File
13 lines
462 B
Bash
Executable File
#!/bin/bash
|
|
|
|
home=$(dirname $0)
|
|
set -uex
|
|
|
|
DIB_INIT_SYSTEM=$(dib-init-system)
|
|
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
|
|
install -m 0644 -o root -g root $home/ttySx.conf /etc/init/ttySx.conf
|
|
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
|
ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service
|
|
ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS1.service
|
|
fi
|