From 07fa2293e1d156c946b605f1fcb8c34e4d74e554 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Fri, 14 Jul 2017 06:21:59 -0500 Subject: [PATCH] =?UTF-8?q?reactivaci=C3=B3n=20del=20test-badblocks=20dest?= =?UTF-8?q?ructivo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autologin.Howto | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autologin.Howto b/autologin.Howto index 1ab5e45..bff0dd5 100644 --- a/autologin.Howto +++ b/autologin.Howto @@ -2,7 +2,7 @@ https://access.redhat.com/solutions/1220603 rm /etc/systemd/system/getty.target.wants/getty@tty1.service -cat >> /etc/systemd/user/test-mem-hdd.service << EOF +cat >> /etc/systemd/system/getty@tty1.service << EOF # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it @@ -47,10 +47,11 @@ SendSIGHUP=yes Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION= [Install] +Alias=getty@tty1.service WantedBy=getty.target EOF -ln -svf /etc/systemd/user/test-mem-hdd.service /etc/systemd/system/getty.target.wants/getty@tty1.service +ln -svf /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service sed -i '/^root/ a test:x:0:0:test:/root:/usr/local/bin/screen-mem-hdd' /etc/passwd sed -i '/^root/ a test:$6$RilmkHYl9XJJAYdQ$kNHf8CkSYxOMhUgytSBFIxmg3rSPjsDAjLH3lCDjPP8XzWqUJMw2BIzZsbYmewNfzK2S3QIEWXYtS8QZFij0k1::0:99999:7:::' /etc/shadow