Add auto-content and first script for random ad from bitreich ads. - tgtimes - … | |
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b60a8fae8e1b5277cbb301ef83af82fa1a7eacab | |
parent 8fae85a6b3ef5794bc0feda233950d82192432fd | |
Author: Christoph Lohmann <[email protected]> | |
Date: Thu, 10 Aug 2023 12:42:21 +0200 | |
Add auto-content and first script for random ad from bitreich ads. | |
Diffstat: | |
A auto-content/get-random-ad.sh | 10 ++++++++++ | |
1 file changed, 10 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/auto-content/get-random-ad.sh b/auto-content/get-random-ad.sh | |
@@ -0,0 +1,10 @@ | |
+#!/bin/sh | |
+ | |
+source ./opus | |
+ | |
+cd opus${v} | |
+adfilename="$(($RANDOM % 8 + 2))-advertisement-$RANDOM.raw" | |
+curl -s gophers://bitreich.org/0/ads/random \ | |
+ > $adfilename | |
+printf "opus%s/%s generated.\n" "${v}" "${adfilename}" | |
+ |