Best practice question - How to check for entware/3rd party script.

  • ATTENTION! You'll notice a Prefix dropdown when you create a thread. If your post applies to one of the topics listed, please use that Prefix for your post. When browsing the thread list you can use the Prefix to filter the view.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Swinson

Regular Contributor
Is there any preferred method for validating that a 3rd party script is installed?
Should I just check that the script/file exists or should I do something more robust in case the file is empty or really out of date?
 

dave14305

Part of the Furniture
When in doubt, do what amtm does: check for the existence of the primary Addon script, and check for the existence of /opt/bin/opkg.

If you require tighter integration with a particular script, check with the author on the best way to determine if it’s truly installed and functional.
 

Swinson

Regular Contributor
When in doubt, do what amtm does: check for the existence of the primary Addon script, and check for the existence of /opt/bin/opkg.

If you require tighter integration with a particular script, check with the author on the best way to determine if it’s truly installed and functional.
Okay Thanks! I figured a check for the existence of a file would suffice but I wanted to ask because I learning more and more everyday how little I know :p.
I appreciate your feedback. I’ll refer to amtm for an example.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top