Subversion Repositories ALCASAR

Rev

Rev 1492 | Rev 1505 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1492 Rev 1501
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1492 2014-11-20 10:56:35Z franck $
2
# $Id: alcasar-conf.sh 1501 2014-11-27 17:57:17Z franck $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 206... Line 206...
206
		then
206
		then
207
			/sbin/chkconfig --add sshd
207
			/sbin/chkconfig --add sshd
208
		else
208
		else
209
			/sbin/chkconfig --del sshd
209
			/sbin/chkconfig --del sshd
210
		fi
210
		fi
-
 
211
# Add module SMS if not exist
-
 
212
		# la variable de l'enregistrement SMS est déclarée dans le fichier de conf (Off par défaut)
-
 
213
		(grep SMS_REGISTRATION $CONF_FILE) || echo "SMS_REGISTRATION=off" >> $CONF_FILE
211
# Remove the update folder
214
# Remove the update folder
212
		rm -rf $DIR_UPDATE
215
		rm -rf $DIR_UPDATE
213
		;;
216
		;;
214
	--apply|-apply)
217
	--apply|-apply)
215
		PTN="\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/([012]?[0-9]|3[0-2])\b"
218
		PTN="\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/([012]?[0-9]|3[0-2])\b"