#!/bin/sh set -eu chmod 0755 /usr/local/sbin/ep-eraser-remote-setup chmod 0750 /etc/sudoers.d chmod 0440 /etc/sudoers.d/ep-eraser chmod 0644 /etc/systemd/system/ep-eraser.service /etc/systemd/system/ep-eraser-remote-access.service chmod 0644 /etc/systemd/system/getty@tty2.service.d/autologin.conf chmod 0644 /etc/systemd/system/ssh.service.d/ep-eraser.conf chmod 0644 /etc/systemd/system/inetd.service.d/ep-eraser.conf visudo --check --file=/etc/sudoers install -d -m 0755 /run/sshd sshd -t systemctl mask getty@tty1.service systemctl enable ep-eraser-remote-access.service ssh.service inetd.service getty@tty2.service