Projet

Général

Profil

« Précédent | Suivant » 

Révision a94b9bef

Ajouté par Renato Botelho il y a plus de 9 ans

pgrep parameters are out of order and it also needs -a to find sshd. While I'm here, simplify sh syntax and prevent noise to be printed if pid file doesn't exist

Voir les différences:

etc/rc.initial
62 62
hidebanner=`grep hidebanner /etc/inc/globals.inc | cut -d'"' -f4`
63 63

  
64 64
# Check to see if SSH is running.
65
SSHD=`/bin/pgrep sshd -F /var/run/sshd.pid`
66
if [ "$?" == "0" ]; then
65
if pgrep -q -a -F /var/run/sshd.pid sshd >/dev/null 2>&1; then
67 66
	sshd_option="14) Disable Secure Shell (sshd)";
68 67
else
69 68
	sshd_option="14) Enable Secure Shell (sshd)";

Formats disponibles : Unified diff