Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
146 f9daq 1
#!/bin/bash
2
 
3
snmpsearch="--snmp-install="
4
 
5
for var in $@
6
do
7
   case $var in
8
      "$snmpsearch"*)
9
         echo "Mached argument: $var"
10
         snmpdir=${var#$snmpsearch}
11
         echo "SNMP directory = $snmpdir";;
12
      *) ;;
13
#         echo "Unmached argument: $var";; 
14
   esac
15
done
16
 
17
printenv PATH | grep "snmp"
18
if [ $? == 0 ]; then
19
   echo "Something found."
20
else
21
   echo "Nothing found."
22
fi
23
 
24
printenv ROOTSYS > /dev/null
25
if [ $? == 0 ]; then
26
   echo "Something found."
27
else
28
   echo "Nothing found."
29
fi
30
 
31
exit 0