DJanGo wrote: 
> 
> the funny thing is - this is a version of a script that had issues - but
> the posted one cant run cause there are some lines missing....
> 
> btw: There is no need to wget things since a long time.
> Just activate the lms updater in the settings and run
> > 
Code:
--------------------
  >   > #!/bin/bash
  > 
  > echo -n "checking for lms update...."
  > update=$(ls /var/lib/squeezeboxserver/cache/updates/*.deb 2> /dev/null | wc 
-l)
  > if [ "$update" != "0" ]
  > then
  > echo " There is a newer Version"
  > find /var/lib/squeezeboxserver/cache/updates/*.deb -exec dpkg -i {} \; 
-exec rm {} \; 
  > else
  > echo " No newer LMS Version found."
  > fi
  > 
  > 
--------------------
> > 
> If someone wants to add this code - feel free - but dont add bugs to
> it.

I'm not entirely sure what it was about my post that appears to have
caused offence. The 'email me if it needs installing' refers to the fact
that the script sends me an email if it downloads a new version of the
server software, telling me it needs to be installed. I wasn't offering
any installation service.

I honestly can't recall where this script came from, I thought I had
done a lot of the work myself, but it could well be based on someone
else's script.

Definitely interested in the statements that "It won't work because
there's lines missing" and "Don't add bugs". Would appreciate any
comments as to how to improve it.

Thanks

Andy


------------------------------------------------------------------------
adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=107247

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

Reply via email to