| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | # Copyright (C) 2016 Daniel Watson |
| 4 | # See the end of the file for license conditions. |
| 5 | # GNU AGPLv3 (or later at your option) |
| 6 | # https://challenge-bot.com/ |
| 7 | |
| 8 | set -o nounset |
| 9 | set -o errexit |
| 10 | |
| 11 | sudo ifconfig usb0 192.168.7.2 |
| 12 | sudo route add default gw 192.168.7.1 |
| 13 | echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf > /dev/null |
| 14 | |
| 15 | # This file is part of challenge-bot. |
| 16 | |
| 17 | # Challenge-bot is free software: you can redistribute it and/or modify |
| 18 | # it under the terms of the GNU Affero General Public License as published by |
| 19 | # the Free Software Foundation, either version 3 of the License, or |
| 20 | # (at your option) any later version. |
| 21 | |
| 22 | # GNU Affero Emacs is distributed in the hope that it will be useful, |
| 23 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 | # GNU Affero General Public License for more details. |
| 26 | |
| 27 | # You should have received a copy of the GNU Affero General Public License |
| 28 | # along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |