From: Paul Hänsch Date: Tue, 8 Jun 2021 08:21:17 +0000 (+0200) Subject: Squashed 'cgilite/' changes from c207699..80b3d8c X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=fcfbf01dba9c932dbb66abffa8f65bf1c7a15081;p=confetti Squashed 'cgilite/' changes from c207699..80b3d8c 80b3d8c try automatic switching to busybox for uuencode and sha256sum git-subtree-dir: cgilite git-subtree-split: 80b3d8c42573d500edfb7f3da30f48a2c1e14334 --- diff --git a/session.sh b/session.sh index b52ac0a..b9cef4d 100755 --- a/session.sh +++ b/session.sh @@ -3,6 +3,13 @@ [ -n "$include_session" ] && return 0 include_session="$0" +if ! which uuencode >/dev/null; then + uuencode() { busybox uuencode "$@"; } +fi +if ! which sha256sum >/dev/null; then + sha256sum() { busybox sha256sum "$@"; } +fi + _DATE="$(date +%s)" SESSION_TIMEOUT="${SESSION_TIMEOUT:-7200}"