Update dhcp_interfaces.cfg

This commit is contained in:
Molly Lau 2023-10-22 19:57:26 +09:00 committed by GitHub
parent dd570c0f21
commit 1ac44babda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,11 @@ network:
# later commands
runcmd:
- systemctl disable ssh.socket
- systemctl enable ssh.service
- systemctl daemon-reload
- update-rc.d ssh enable
- kill -9 $(ps -ef | grep '/usr/sbin/sshd' | gawk '$0 !~/grep/ {print $2}' | tr -s '\n' ' ')
- /etc/init.d/ssh restart
- sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
- sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf