From: <sar...@us...> - 2010-09-16 14:47:26
|
Update of /cvsroot/ceps/cgi-scripts In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27620 Modified Files: Tag: RHEL5U8_Migration prnconfig.sh Log Message: Added proper message while calling the dnsregister in the screen Index: prnconfig.sh =================================================================== RCS file: /cvsroot/ceps/cgi-scripts/prnconfig.sh,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -C2 -d -r1.6.2.1 -r1.6.2.2 *** prnconfig.sh 16 Sep 2010 14:19:50 -0000 1.6.2.1 --- prnconfig.sh 16 Sep 2010 14:47:13 -0000 1.6.2.2 *************** *** 4,7 **** --- 4,10 ---- # # $Log$ + # Revision 1.6.2.2 2010/09/16 14:47:13 saravanc + # Added proper message while calling the dnsregister in the screen + # # Revision 1.6.2.1 2010/09/16 14:19:50 saravanc # Calling the dnsregister for registering the pritner name in DNS, if it is not already registered. *************** *** 428,431 **** --- 431,445 ---- echo "Checking whether the DNS is registered or not" >> $CMDSTATUS /usr/bin/dnsregister $HTTPARG_pname $main_dynip + case $? in + 1 ) + echo "The printer is already registered in DNS." >> $CMDSTATUS + ;; + 2 ) + echo "This is new printer and registered in DNS." >> $CMDSTATUS + ;; + 3 ) + echo "The printer got new IP address. Deleted the old interface and registered with new interface in DNS." >> $CMDSTATUS + ;; + esac echo "Running the dnsregister is done" >> $CMDSTATUS fi |