Refactor logs for opnatt.sh to match opnSense #52

Closed
wsciaroni wants to merge 1 commit from master into master

View file

@ -4,14 +4,14 @@ set -e
ONT_IF='em0' ONT_IF='em0'
RG_IF='em1' RG_IF='em1'
RG_ETHER_ADDR='xx:xx:xx:xx:xx:xx' RG_ETHER_ADDR='xx:xx:xx:xx:xx:xx'
LOG=/var/log/pfatt.log LOG=/var/log/opnatt.log
getTimestamp(){ getTimestamp(){
echo `date "+%Y-%m-%d %H:%M:%S :: [pfatt.sh] ::"` echo `date "+%Y-%m-%d %H:%M:%S :: [opnatt.sh] ::"`
} }
{ {
echo "$(getTimestamp) pfSense + AT&T U-verse Residential Gateway for true bridge mode" echo "$(getTimestamp) opnSense + AT&T U-verse Residential Gateway for true bridge mode"
echo "$(getTimestamp) Configuration: " echo "$(getTimestamp) Configuration: "
echo "$(getTimestamp) ONT_IF: $ONT_IF" echo "$(getTimestamp) ONT_IF: $ONT_IF"
echo "$(getTimestamp) RG_IF: $RG_IF" echo "$(getTimestamp) RG_IF: $RG_IF"
@ -87,6 +87,6 @@ getTimestamp(){
/sbin/ifconfig $ONT_IF promisc /sbin/ifconfig $ONT_IF promisc
echo "OK!" echo "OK!"
echo "$(getTimestamp) ngeth0 should now be available to configure as your pfSense WAN" echo "$(getTimestamp) ngeth0 should now be available to configure as your opnSense WAN"
echo "$(getTimestamp) done!" echo "$(getTimestamp) done!"
} >> $LOG } >> $LOG