2012年5月2日 星期三

[TFTP] Using TFTP download cer & key


[TFTP] Using TFTP download cer & key



#!/bin/sh



echo "Enter MAC Address: "

read MACAddress



tftp_server='192.168.100.20'

EU_cer='EU_'$MACAddress'.cer'

EU_key='EU_'$MACAddress'.key'

US_cer='US_'$MACAddress'.cer'

US_key='US_'$MACAddress'.key'



echo 'Download  ..  tftp -r '$EU_cer' -g '$tftp_server''

tftp -r $EU_cer -g $tftp_server

sleep 0.1



echo 'Download  ..  tftp -r '$EU_key' -g '$tftp_server''

tftp -r $EU_key -g $tftp_server

sleep 0.1



echo 'Download  ..  tftp -r '$US_cer' -g '$tftp_server''

tftp -r $US_cer -g $tftp_server

sleep 0.1



echo 'Download  ..  tftp -r '$US_key' -g '$tftp_server''

tftp -r $US_key -g $tftp_server

Related Posts:

0 意見:

張貼留言