Commit Diff
Diff:
cf2b0082d3c6800651e0c21a0760d96729d1cd3a
dd956799d881dd043bd27384430130784cdc5a5f
Commit:
dd956799d881dd043bd27384430130784cdc5a5f
Tree:
10a14e2ab75ff42e45ff30a1d00779edc64f80a1
Author:
Fred. Galusik <f@galusik.fr>
Committer:
Fred. Galusik <f@galusik.fr>
Date:
Sun May 3 19:57:15 2020 UTC
Message:
add read FAQ/CURRENT
blob - 11e591b7b5c7d67d1619f0106c67750427586b99
blob + 7cb141ff42fd4ae63bb109bf6d0879a3d1f75ea5
--- snaps
+++ snaps
@@ -184,6 +184,19 @@ s_sysup() {
}
+read_cur() {
+ FAQ='https://www.openbsd.org/faq/current.html'
+ if [ `which links 2>/dev/null` ]; then
+ READ='links -dump'
+ elif [ `which lynx 2>/dev/null` ]; then
+ READ='lynx --dump'
+ else
+ echo "You need 'links' or 'lynx' to get the FAQ/CURRENT. Aborting..."
+ exit 1
+ fi
+ ${READ} ${FAQ} | less
+}
+
all_mirrors() {
MIRRORLIST=$(${CURL} ${HTTPSLIST} | awk '{print $1}')
for _m in ${MIRRORLIST}
@@ -220,6 +233,9 @@ case $1 in
-c)
s_when
;;
+ -f)
+ read_cur
+ ;;
-a)
all_mirrors
;;
Frédéric Galusik