mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-07 16:05:59 +08:00
Update dhcp_interfaces.cfg
This commit is contained in:
parent
dd570c0f21
commit
1ac44babda
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue