mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-02 11:20:56 +08:00
Update RHELinit.sh
This commit is contained in:
parent
44f6af3046
commit
26d22f1179
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ sed -ri 's/^SELINUX=.*/SELINUX=disabled/g' /mnt/etc/selinux/config
|
|||
[[ "$setIPv6" == "0" ]] && sed -ri 's/net.ifnames=0 biosdevname=0/net.ifnames=0 biosdevname=0 ipv6.disable=1/g' /mnt/etc/default/grub
|
||||
|
||||
# Add tty console for grub.
|
||||
sed -ri 's/console=tty0/console=tty1/g' /mnt/etc/default/grub
|
||||
sed -ri 's/console=tty0//g' /mnt/etc/default/grub
|
||||
sed -ri 's/console=ttyS0,115200n8/console=ttyS0,115200n8 console=tty1/g' /mnt/etc/default/grub
|
||||
|
||||
# Permit root user login by password, change ssh port.
|
||||
sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /mnt/etc/ssh/sshd_config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue