| bitreich-con-view-presentation - bitreich-conference - Bitreich Conference Syst… | |
| git clone git://bitreich.org/bitreich-conference git://enlrupgkhuxnvlhsf6lc3fzi… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| bitreich-con-view-presentation (889B) | |
| --- | |
| 1 #!/bin/sh | |
| 2 | |
| 3 if [ $# -lt 1 ]; | |
| 4 then | |
| 5 year="$(date +%Y)" | |
| 6 else | |
| 7 year="$1" | |
| 8 fi | |
| 9 | |
| 10 if [ ! -f "/br/con/termres${year}" ] | |
| 11 then | |
| 12 printf 'The conference has not started yet. Please retry later.\… | |
| 13 exit 1 | |
| 14 fi | |
| 15 | |
| 16 . "/br/con/termres${year}" | |
| 17 | |
| 18 if [ "$(tput cols)" -lt "$CONTERMCOL" ] || [ "$(tput lines)" -lt "$CONTE… | |
| 19 then | |
| 20 printf 'Input presentation terminal is %dx%d characters.\n' \ | |
| 21 "$CONTERMCOL" "$CONTERMLIN" | |
| 22 printf 'You should adjust your terminal to it. Continue anyway? … | |
| 23 read yesno | |
| 24 if [ "$yesno" != 'y' ] | |
| 25 then | |
| 26 exit 1 | |
| 27 fi | |
| 28 fi | |
| 29 | |
| 30 printf '%s\n' 'You will be connected to the conference view-only termina… | |
| 31 'Type in ^'\\' (control+'\\') to detach from it.' \ | |
| 32 'Press any key to continue.' | |
| 33 | |
| 34 read | |
| 35 | |
| 36 abduco -r -l -a /br/con/sock/bitreichcon${year} || \ | |
| 37 printf '%s\n' 'Could not connect to the conference. ' \ | |
| 38 'Please contact 20h on #bitreich-con on freenode.' | |
| 39 |