How to automate mirror selection for slackpkg?
by FlinchX from LinuxQuestions.org on (#557TH)
slackpkg needs a repo line uncommented in /etc/slacpkg/mirrors to work properly.
How to automate the mirror selection process in a script?
Not looking for actual code, still trying to understand the idea. Should I just try mirrors one by one until one works? And how would I know that a mirror worked? The manpage for slackpkg doesn't seem to have anything about different exit codes being returned when a mirror works or not. Even when no mirrors are active, it prints that error message, yet exits with code 0 as well.


How to automate the mirror selection process in a script?
Not looking for actual code, still trying to understand the idea. Should I just try mirrors one by one until one works? And how would I know that a mirror worked? The manpage for slackpkg doesn't seem to have anything about different exit codes being returned when a mirror works or not. Even when no mirrors are active, it prints that error message, yet exits with code 0 as well.