Roland0 wrote: 
> As 'mentioned'
> (http://forums.slimdevices.com/showthread.php?108166-Building-LMS-for-64-bit-Debian-running-on-ARM-Single-Board-Computers&p=897624&viewfull=1#post897624)
> that's how my script does it:
> > 
Code:
--------------------
  >   > 
  > function refresh_config {
  > [ -f /tmp/config.guess ] || wget -O /tmp/config.guess 
'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
  > [ -f /tmp/config.sub ] || wget -O /tmp/config.sub 
'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
  >     cp -vf /tmp/config.guess .
  >     cp -vf /tmp/config.sub .
  > }
  > 
--------------------
> > 
> 
> 
> If you wanted to check for arch, then one would just put the test into
> the refresh_config function. Same approach could be used to check for
> availability of wget/curl/network.
> 
> Except for the caveats already mentioned by you (which I think are
> minor - wget is available everywhere and usually already installed and
> if there is not net connection, one couldn't download the
> modules/script in any case), no.
Thanks, Roland, you make perfect sense and are well ahead of me as
usual. 

Wouldn't it be nice to get these changes (or something very like them)
merged into the main Logitech slimserver-vendor git repo?  What were
discussing seems like reasonable fix and could close this 'issue'
(https://github.com/Logitech/slimserver-vendor/issues/9).



----------------------
"Dreamer, easy in the chair that really fits you..."
------------------------------------------------------------------------
dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=108166

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to