Why /etc/raidiator_version not = /var/log/raidiator_version?

A nice, warm, and cozy place for all third-party developers to congregate.

Why /etc/raidiator_version not = /var/log/raidiator_version?

Postby mdgm » Wed Dec 02, 2009 8:36 pm

Code: Select all
awk -F"[,=]+" '{print $2}'  /etc/raidiator_version

Gives 4.01c1-p6
Code: Select all
awk -F"[,=]+" '{print $2}'  /var/log/raidiator_version

Gives 4.1.6

Same issue on two NASes? Why is there a difference?
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28583
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Why /etc/raidiator_version not = /var/log/raidiator_version?

Postby WhoCares? » Thu Dec 03, 2009 2:46 am

Seems to be specific to the Sparc based products. Can reproduce it on all my Sparc systems but not on the x86 line. Wouldn't think it's a real problem though.

-Stefan
Follow me on Twitter or visit my web site
If you like my add-ons (Image downloads so far), please consider a --> donation. and get your entry in the "Hall of Fame".
(Current download to donation ratio: 0,19% [405:1])
User avatar
WhoCares?
ReadyNAS Add-ons Expert
 
Posts: 2919
Joined: Tue Jan 15, 2008 6:34 am
Location: At my desk ;)
ReadyNAS: Pro

Re: Why /etc/raidiator_version not = /var/log/raidiator_version?

Postby beisser » Thu Dec 10, 2009 11:37 am

mdgm wrote:
Code: Select all
awk -F"[,=]+" '{print $2}'  /etc/raidiator_version

Gives 4.01c1-p6
Code: Select all
awk -F"[,=]+" '{print $2}'  /var/log/raidiator_version

Gives 4.1.6

Same issue on two NASes? Why is there a difference?


there is no difference.

its the same version, just a different notation/format
User avatar
beisser
Jedi Council
 
Posts: 2314
Joined: Mon Dec 10, 2007 3:12 am
Location: Near Munich, Germany
ReadyNAS: Pro

Re: Why /etc/raidiator_version not = /var/log/raidiator_version?

Postby chirpa » Thu Dec 10, 2009 1:43 pm

As beisser said, that was the old version format. Still means the same, just laid out different.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 15501
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: Why /etc/raidiator_version not = /var/log/raidiator_version?

Postby mdgm » Thu Dec 10, 2009 2:40 pm

chirpa wrote:As beisser said, that was the old version format. Still means the same, just laid out different.

Ok, thanks for the information beisser and chirpa. You learn something new every day.

I guess if I was to write an add-on I'd use the /var/log/raidiator_version which uses the new format.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28583
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312


Return to ReadyNAS Developers Network



Who is online

Users browsing this forum: No registered users and 17 guests