Add auto-content and first script for random ad from bitreich ads. - tgtimes - The Gopher Times HTML git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit b60a8fae8e1b5277cbb301ef83af82fa1a7eacab DIR parent 8fae85a6b3ef5794bc0feda233950d82192432fd HTML Author: Christoph Lohmann <20h@r-36.net> 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(-) --- DIR 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}" +