General TC > Programming & Scripting - Unofficial
Script to download extensions+dependencies on other Linux distros
doctoranonymous:
Ahhhh, armv6 repo, not x86 repo !!! Maybe?
I think I have to alter the FetchExt.sh script to tell it where to go (and how to get there?) Maybe, then, re-chmod it?
doctoranonymous:
So, I altered the code very slightly, went back and deleted nano (cuz its x86 and 10.x), and saved my altered code under the name FetchExt2.sh.
Here is the mild alteration:
--- Code: ---"
# Repository to download from
ADDR="http://repo.tinycorelinux.net"
# Tinycore version
TC="9.x"
# Processor architecture, current options are x86 x86_64 armv6 armv7
ARCH="armv6"
# This is where the extensions get downloaded from.
URL="$ADDR/$TC/$ARCH/tcz/"
EXT="$1"
TYPE=".tcz.tree"
if [ "$EXT" = "info" ]
then
TYPE=".lst"
fi
FILE=""
"
--- End code ---
So, I'll chmod the fetchext2 and then run it, as per your previous instructions. Thanks again!
[EDIT]: Added code tags. Rich
doctoranonymous:
So it is running now, and seems to be working; stuff is downloading. But still getting "[: 0/8: unexpected operator" messages?
Also, here is the directory tree for TC, which is basically superfluous for anyone else reading this, but completes and satisfies my questions. haich tee tee pee ://repo.tinycorelinux.net/9.x/armv6/tcz/TC.tcz.tree
doctoranonymous:
And, final loose ends (for other noobs like me), bash vs sh. The unexpected operator error message is because of different syntax between bash and sh shell scripting languages. I think, maybe "==" vs "=" is a necessary distinction; but also the "shebang" (whatever that is?) , i.e. #/bin/ vs /bin/ ?
As I said, I'm a noob, and this is obvious to some people, but its nice to search around a bit, find answers, and share freely. Cheers, all!
doctoranonymous:
And .... Shebang! Now I have knowledge. haich tee tee pee ess ://en.wikipedia.org/wiki/Shebang_(Unix)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version