9:3b982acb3d07 | 10:e9b5e53f1d0b |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # $Id$ | |
4 # | |
5 ############################################################################# | 3 ############################################################################# |
6 # Copyright (C) 2005 | 4 # Copyright (C) 2005-2009 |
7 # | 5 # |
8 # Michiel Broek <mbse@mbse.dds.nl> | 6 # Michiel Broek <mbse@mbse.dds.nl> |
9 # Beekmansbos 10 | 7 # Beekmansbos 10 |
10 # 1971 BV IJmuiden | 8 # 1971 BV IJmuiden |
11 # the Netherlands | 9 # the Netherlands |
25 # You should have received a copy of the GNU General Public License | 23 # You should have received a copy of the GNU General Public License |
26 # along with MBSE BBS; see the file COPYING. If not, write to the Free | 24 # along with MBSE BBS; see the file COPYING. If not, write to the Free |
27 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | 25 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
28 ############################################################################# | 26 ############################################################################# |
29 | 27 |
28 VERSION=0.14 | |
30 export PATH=/bin:/usr/bin:/sbin:/usr/sbin | 29 export PATH=/bin:/usr/bin:/sbin:/usr/sbin |
31 umask 077 | 30 umask 077 |
32 LANG=C; export LANG | 31 LANG=C; export LANG |
33 | 32 |
34 fqdn=`hostname -f` | 33 fqdn=`hostname -f` |
57 do | 56 do |
58 if [ -x $f ]; then | 57 if [ -x $f ]; then |
59 rm -f $TMP1 | 58 rm -f $TMP1 |
60 $f > $TMP1 | 59 $f > $TMP1 |
61 if [ -s $TMP1 ]; then | 60 if [ -s $TMP1 ]; then |
61 if [ ! -f $SECOUT ]; then | |
62 echo "" >> $SECOUT | |
63 echo " SlackSecCheckSripts v${VERSION}" >> $SECOUT | |
64 echo "" >> $SECOUT | |
65 fi | |
62 cat $TMP1 >> $SECOUT | 66 cat $TMP1 >> $SECOUT |
63 echo "" >> $SECOUT | 67 echo "" >> $SECOUT |
64 echo "------------------------------------------------------------------------------" >> $SECOUT | 68 echo "------------------------------------------------------------------------------" >> $SECOUT |
65 fi | 69 fi |
66 fi | 70 fi |